OSDN Git Service

Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'.
authorSanket Padawe <sanketpadawe@google.com>
Mon, 20 Mar 2017 22:08:07 +0000 (15:08 -0700)
committerSanket Padawe <sanketpadawe@google.com>
Tue, 21 Mar 2017 22:31:58 +0000 (22:31 +0000)
Bug: 35767068
Test: No build failure on update.
Change-Id: Ib7211a9d0c10a717bfd5a7b22b8bea2b3973d12f
Merged-in: Ib7211a9d0c10a717bfd5a7b22b8bea2b3973d12f

src/com/android/settings/datausage/DataUsageList.java

index 7ac81f5..eda78a9 100644 (file)
@@ -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;