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

Commit 259046fd authored by Lance Hepler's avatar Lance Hepler
Browse files

Use status bar power widget setting for visibility

parent 3df945f7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -370,6 +370,12 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
        WindowManagerImpl.getDefault().addView(view, lp);

        setupPowerWidget();

        boolean powerWidget = Settings.System.getInt(getContentResolver(),
                Settings.System.EXPANDED_VIEW_WIDGET, 1) == 1;
        if (!powerWidget) {
            mExpandedView.findViewById(R.id.exp_power_stat).setVisibility(View.GONE);
        }
    }

    public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) {