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

Commit 4af05c1a authored by Chen Xu's avatar Chen Xu
Browse files

trigger carrier identification does not run when prefer APN change

currently, JP MVNO SIMs use preferred APN for recognization. Once users
manually enter MVNO APNs from settings, carrierResolver should listen
for that and re-evaluate carrier id from JP MNO to JP MVNO.
This change fix the issue that carrier identification logics does not
run when there are APN URL update. Note, the original issue will only
occur once after prefer APN settings change, the issue will not shown
or persistent after reboot.

Bug: 155426801
Test: Maunal
Change-Id: Ice19a05a034631a0f2dc68e354d1b70ab9507857
parent 52014f02
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
package com.android.internal.telephony;

import static android.provider.Telephony.CarrierId;
import static android.provider.Telephony.Carriers.CONTENT_URI;

import android.annotation.NonNull;
import android.annotation.Nullable;
@@ -101,7 +102,7 @@ public class CarrierResolver extends Handler {
    private final ContentObserver mContentObserver = new ContentObserver(this) {
        @Override
        public void onChange(boolean selfChange, Uri uri) {
            if (CONTENT_URL_PREFER_APN.equals(uri.getLastPathSegment())) {
            if (Telephony.Carriers.CONTENT_URI.equals(uri)) {
                logd("onChange URI: " + uri);
                sendEmptyMessage(PREFER_APN_UPDATE_EVENT);
            } else if (CarrierId.All.CONTENT_URI.equals(uri)) {