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

Commit 14c5e43f authored by Pedlar's avatar Pedlar
Browse files

Only modify the view of the bar, if we want to.

Check to make sure the Uri we are modding is the one we want to.
This is to prevent the bar from be disabled for some paradoxial reason.
parent 2d2cdd02
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -2361,8 +2361,7 @@ public class StatusBarService extends IStatusBar.Stub
                }
            } else if (uri.equals(Settings.System.getUriFor(Settings.System.WIDGET_BUTTONS))) {
                setupPowerWidget();
            }

            } else if (uri.equals(Settings.System.getUriFor(Settings.System.EXPANDED_VIEW_WIDGET))) {
                boolean powerWidget = Settings.System.getInt(mContext.getContentResolver(),
                            Settings.System.EXPANDED_VIEW_WIDGET, 1) == 1;
                if(!powerWidget) {
@@ -2372,6 +2371,7 @@ public class StatusBarService extends IStatusBar.Stub
                    mExpandedView.findViewById(R.id.exp_power_stat).
                        setVisibility(View.VISIBLE);
                }
            }
            updateWidget();
        }
    }