adding a crashfix at checking multiple SIM cards

This commit is contained in:
tibbi 2020-12-24 20:39:02 +01:00
parent a402241a03
commit a375ff82b9
1 changed files with 5 additions and 0 deletions

View File

@ -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)