adding a crashfix at checking multiple SIM cards
This commit is contained in:
parent
a402241a03
commit
a375ff82b9
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue