Merge "Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'."
am: bd9ce2e4b1
Change-Id: I361f7c1747ab1f16cce149d78cc219f83a16948c
This commit is contained in:
@@ -476,7 +476,7 @@ public class DataUsageList extends DataUsageBase {
|
||||
|
||||
final ConnectivityManager conn = ConnectivityManager.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;
|
||||
|
||||
boolean retVal = conn.isNetworkSupported(TYPE_MOBILE) && isReady;
|
||||
|
Reference in New Issue
Block a user