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

Commit 7ef36bc6 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
Merged-In: If3af44f22f5e2b5fc090f4478ccef6192c5ecb16
parent bfc44f2e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2012,9 +2012,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) {