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

Commit 5f6a13d4 authored by Ruthwar Kumar Ambeer's avatar Ruthwar Kumar Ambeer Committed by Linux Build Service Account
Browse files

Update proper PhoneStates on SIM status tabs

PhoneStateListener of current tab is cleared when
moving from Current tab to other tab so that Proper
phone States will be updated on each tab.

Change-Id: Ib8a0ce005442f57d9480d2670c26ef7e0d0a452d
parent 036f91bd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -453,7 +453,10 @@ public class SimStatus extends SettingsPreferenceFragment {
        public void onTabChanged(String tabId) {
            final int slotId = Integer.parseInt(tabId);
            mSir = mSelectableSubInfos.get(slotId);

            if (mPhoneStateListener != null) {
                mTelephonyManager.listen(mPhoneStateListener,
                        PhoneStateListener.LISTEN_NONE);
            }
            // The User has changed tab; update the SIM information.
            updatePhoneInfos();
            mTelephonyManager.listen(mPhoneStateListener,