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

Commit ce0c0019 authored by Jordan Liu's avatar Jordan Liu
Browse files

Get system resources instead of phone context

Use Resources.getSystem() instead of mPhone.getContext().getResources()
to load config_cdma_home_system to resolve roaming indicator.

Fixes: 62843620
Test: runtest --path tests/ (existing unit tests pass)
Change-Id: If3af44f22f5e2b5fc090f4478ccef6192c5ecb16
parent 17a99fb6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2001,9 +2001,9 @@ public class ServiceStateTracker extends Handler {
     */
    private boolean isRoamIndForHomeSystem(String roamInd) {
        // retrieve the carrier-specified list of ERIs for home system
        log("isRoamIndForHomeSystem: " + mPhone.getContext().getResources()
        log("isRoamIndForHomeSystem: " + Resources.getSystem()
                .getConfiguration().toString());
        String[] homeRoamIndicators = mPhone.getContext().getResources()
        String[] homeRoamIndicators = Resources.getSystem()
                .getStringArray(com.android.internal.R.array.config_cdma_home_system);

        if (homeRoamIndicators != null) {