mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
adding one more crashfix
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user