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

Commit 2dcfb9f3 authored by Chaitanya Saggurthi's avatar Chaitanya Saggurthi Committed by Gerrit - the friendly Code Review server
Browse files

MSIM: Refresh mobile data label on statusbar

Refresh mobile data label only if received subscription is
preferred data subscription or in airplane mode.

Change-Id: Iae2717c709dd66ed2cbe5f9ddc308f78a5ab0a70
CRs-Fixed: 662108
parent 00e112e2
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -1173,6 +1173,9 @@ public class MSimNetworkController extends NetworkController {
            }
        }

        //Update mobile label only for preferred data subscription and in airplane mode
        if (subscription ==
                MSimTelephonyManager.getDefault().getPreferredDataSubscription() || mAirplaneMode) {
            // mobile label
            N = mMobileLabelViews.size();
            for (int i=0; i<N; i++) {
@@ -1184,6 +1187,7 @@ public class MSimNetworkController extends NetworkController {
                    v.setVisibility(View.VISIBLE);
                }
            }
        }
        setCarrierText();
    }