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

Commit e50e6c1d authored by Stuart Scott's avatar Stuart Scott
Browse files

Ensure correct mapping when sim cards are ready.

Also only switch modems if the requested config is different from the
current configuration.

bug: 20821126
Change-Id: I56135b693a27561440a075dc36fa409f0d6eda0e
parent a727251a
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -239,6 +239,20 @@ public class ProxyController {
            }
        }

        // Check we actually need to do anything
        boolean same = true;
        for (int i = 0; i < mProxyPhones.length; i++) {
            if (mProxyPhones[i].getRadioAccessFamily() != rafs[i].getRadioAccessFamily()) {
                same = false;
            }
        }
        if (same) {
            // All phones are already set to the requested raf
            logd("setRadioCapability: Already in requested configuration, nothing to do.");
            // It isn't really an error, so return true - everything is OK.
            return true;
        }

        // Clear to be sure we're in the initial state
        clearTransaction();

+3 −0
Original line number Diff line number Diff line
@@ -550,6 +550,9 @@ public class SubscriptionInfoUpdater extends Handler {
            }
        }

        // Ensure the modems are mapped correctly
        mSubscriptionManager.setDefaultDataSubId(mSubscriptionManager.getDefaultDataSubId());

        SubscriptionController.getInstance().notifySubscriptionInfoChanged();
        logd("updateSubscriptionInfoByIccId:- SsubscriptionInfo update complete");
    }