Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f54df6cc authored by Sanket Padawe's avatar Sanket Padawe Committed by android-build-merger
Browse files

Merge "Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'."

am: bd9ce2e4

Change-Id: I361f7c1747ab1f16cce149d78cc219f83a16948c
parents b7c50119 bd9ce2e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;