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

Commit 63516fb9 authored by Bonian Chen's avatar Bonian Chen
Browse files

[Settings] Avoid access getSubscriberId()

Replace API to avoid from access TelephonyManager#getSubscriberId(int)

Bug: 147405859
Test: build pass
Change-Id: Ie4135eb8657f97f41d3617e519f634227185fedb
parent 8e56dc39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ public class DataUsageUtils {
        final SubscriptionManager subscriptionManager = context.getSystemService(
                SubscriptionManager.class);
        final NetworkTemplate mobileAll = NetworkTemplate.buildTemplateMobileAll(
                telephonyManager.getSubscriberId(subId));
                telephonyManager.createForSubscriptionId(subId).getSubscriberId());

        if (!subscriptionManager.isActiveSubId(subId)) {
            Log.i(TAG, "Subscription is not active: " + subId);