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

Commit 27c9adb0 authored by Junyu Lai's avatar Junyu Lai
Browse files

[MS34.1] Replace TelephonyManager#getSubscriberId(subId) with public API

Test: atest com.android.server.net.NetworkStatsSubscriptionsMonitorTest
Bug: 204830222
Change-Id: I57aa4470aea1715217fa7d74f2c9067b096d1bae
parent 2aa7b9ec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -101,7 +101,8 @@ public class NetworkStatsSubscriptionsMonitor extends
        // with empty IMSI. So filter the subs w/o a valid IMSI to prevent such registration.
        final List<Pair<Integer, String>> filteredNewSubs = new ArrayList<>();
        for (final int subId : newSubs) {
            final String subscriberId = mTeleManager.getSubscriberId(subId);
            final String subscriberId =
                    mTeleManager.createForSubscriptionId(subId).getSubscriberId();
            if (!TextUtils.isEmpty(subscriberId)) {
                filteredNewSubs.add(new Pair(subId, subscriberId));
            }