mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-18 12:40:46 +01:00
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()
|
setupAdapter()
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
setupThreadTitle()
|
setupThreadTitle()
|
||||||
|
setupSIMSelector()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -371,6 +372,10 @@ class ThreadActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (numbers.isEmpty()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
currentSIMCardIndex = availableSIMs.indexOfFirstOrNull { it.subscriptionId == config.getUseSIMIdAtNumber(numbers.first()) } ?: 0
|
currentSIMCardIndex = availableSIMs.indexOfFirstOrNull { it.subscriptionId == config.getUseSIMIdAtNumber(numbers.first()) } ?: 0
|
||||||
|
|
||||||
thread_select_sim_icon.applyColorFilter(config.textColor)
|
thread_select_sim_icon.applyColorFilter(config.textColor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user