mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-16 11:31:34 +01:00
adding one more crashfix
This commit is contained in:
parent
4fbf85af78
commit
ef592f5f82
@ -34,4 +34,10 @@ fun Context.getAvailableSIMCardLabels(): ArrayList<SIMAccount> {
|
||||
}
|
||||
|
||||
@SuppressLint("MissingPermission")
|
||||
fun Context.areMultipleSIMsAvailable() = telecomManager.callCapablePhoneAccounts.size > 1
|
||||
fun Context.areMultipleSIMsAvailable(): Boolean {
|
||||
return try {
|
||||
telecomManager.callCapablePhoneAccounts.size > 1
|
||||
} catch (ignored: Exception) {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user