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

Commit 6b859110 authored by Meng Wang's avatar Meng Wang
Browse files

ImsPhone: defer intial roaming state update

The intial roaming update was in constructor of ImsPhone. It's so early
that settings provider and carrier config may not be loaded. Hence
incorrect WFC mode was got and set. Now we defer intial roaming update
to ImsManager#updateWfcFeatureAndProvisionedValues, invoked on
EVENT_CARRIER_CONFIG_CHANGED

Bug: 31972897
Change-Id: Id7a14f2d4ff0c638c53bcf7bbae2468750581e06
parent 0db7db3a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -231,8 +231,8 @@ public class ImsPhone extends ImsPhoneBase {
        updateDataServiceState();

        mDefaultPhone.registerForServiceStateChanged(this, EVENT_SERVICE_STATE_CHANGED, null);
        // Force update roaming state
        updateRoamingState(getCurrentRoaming());
        // Force initial roaming state update later, on EVENT_CARRIER_CONFIG_CHANGED.
        // Settings provider or CarrierConfig may not be loaded now.
    }

    //todo: get rid of this function. It is not needed since parentPhone obj never changes