Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'.
Bug: 35767068 Test: No build failure on update. Change-Id: Ib7211a9d0c10a717bfd5a7b22b8bea2b3973d12f
This commit is contained in:
@@ -477,7 +477,7 @@ public class DataUsageList extends DataUsageBase {
|
|||||||
|
|
||||||
final ConnectivityManager conn = ConnectivityManager.from(context);
|
final ConnectivityManager conn = ConnectivityManager.from(context);
|
||||||
final TelephonyManager tele = TelephonyManager.from(context);
|
final TelephonyManager tele = TelephonyManager.from(context);
|
||||||
final int slotId = SubscriptionManager.getSlotId(subId);
|
final int slotId = SubscriptionManager.getSlotIndex(subId);
|
||||||
final boolean isReady = tele.getSimState(slotId) == SIM_STATE_READY;
|
final boolean isReady = tele.getSimState(slotId) == SIM_STATE_READY;
|
||||||
|
|
||||||
boolean retVal = conn.isNetworkSupported(TYPE_MOBILE) && isReady;
|
boolean retVal = conn.isNetworkSupported(TYPE_MOBILE) && isReady;
|
||||||
|
Reference in New Issue
Block a user