Use subscriptionManagerCompat() everywhere

This commit is contained in:
Naveen 2022-09-18 22:57:28 +05:30
parent f4575401f5
commit a4bd3364c6
3 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ class DirectReplyReceiver : BroadcastReceiver() {
val settings = context.getSendMessageSettings()
if (address != null) {
val availableSIMs = SubscriptionManager.from(context).activeSubscriptionInfoList
val availableSIMs = context.subscriptionManagerCompat().activeSubscriptionInfoList
if ((availableSIMs?.size ?: 0) > 1) {
val currentSIMCardIndex = context.config.getUseSIMIdAtNumber(address)
val wantedId = availableSIMs.getOrNull(currentSIMCardIndex)