adding a crashfix at checking multiple SIM cards
This commit is contained in:
parent
a402241a03
commit
a375ff82b9
|
@ -152,6 +152,7 @@ class ThreadActivity : SimpleActivity() {
|
|||
setupAdapter()
|
||||
runOnUiThread {
|
||||
setupThreadTitle()
|
||||
setupSIMSelector()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -371,6 +372,10 @@ class ThreadActivity : SimpleActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
if (numbers.isEmpty()) {
|
||||
return
|
||||
}
|
||||
|
||||
currentSIMCardIndex = availableSIMs.indexOfFirstOrNull { it.subscriptionId == config.getUseSIMIdAtNumber(numbers.first()) } ?: 0
|
||||
|
||||
thread_select_sim_icon.applyColorFilter(config.textColor)
|
||||
|
|
Loading…
Reference in New Issue