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

Commit ac01f97b authored by Steve Kondik's avatar Steve Kondik
Browse files

SystemUI: Only add WiMAX icon slot if supported

Change-Id: I9eb550a2918605443e14ea5ed24c33006c0f8046
parent 3ddec014
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -447,6 +447,7 @@ public class StatusBarPolicy {
        mService = (StatusBarManager)context.getSystemService(Context.STATUS_BAR_SERVICE);
        mSignalStrength = new SignalStrength();
        mBatteryStats = BatteryStatsService.getService();
        mWimaxSettingsHelper = new WimaxSettingsHelper(context);

        // settings observer for cm-battery change
        SettingsObserver settingsObserver = new SettingsObserver(mHandler);
@@ -485,9 +486,11 @@ public class StatusBarPolicy {
        // wifi will get updated by the sticky intents

        // wimax
        if (mWimaxSettingsHelper.isWimaxSupported()) {
            mService.setIcon("wimax", sWimaxSignalImages[0][0], 0);
            mService.setIconVisibility("wimax", false);
            // wimax will get updated by the sticky intents
        }

        // TTY status
        mService.setIcon("tty",  R.drawable.stat_sys_tty_mode, 0);
@@ -533,9 +536,6 @@ public class StatusBarPolicy {
        mService.setIcon("headset", com.android.internal.R.drawable.stat_sys_headset, 0);
        mService.setIconVisibility("headset", false);

        // wimax
        mWimaxSettingsHelper = new WimaxSettingsHelper(context);

        IntentFilter filter = new IntentFilter();

        // Register for Intent broadcasts for...