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

Commit 63fc6d8c authored by Michael W's avatar Michael W
Browse files

SystemUI: Make clock truly invisible

* When the clock is set to left and then hidden, the notification
  icons, which would appear on the left first transition to the
  right to make place for the clock then finally snap into place
* The same happens when the clock was set to show right and then
  is hidden: The battery, wifi, etc. icons do leave space for the
  (not displayed) clock and then snap to the right
* This patch fixes the behavior

Change-Id: Ic68b1001becb91da6f1aeaca95a7312b36e1d2a1
parent 2dc4ad09
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -289,7 +289,8 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
     */
    private int clockHiddenMode() {
        if (!mStatusBar.isClosed() && !mKeyguardMonitor.isShowing()
                && !mStatusBarStateController.isDozing()) {
                && !mStatusBarStateController.isDozing()
                && mClockController.getClock().shouldBeVisible()) {
            return View.INVISIBLE;
        }
        return View.GONE;
+1 −1
Original line number Diff line number Diff line
@@ -268,7 +268,7 @@ public class Clock extends TextView implements DemoMode, Tunable, CommandQueue.C
        updateClockVisibility();
    }

    private boolean shouldBeVisible() {
    public boolean shouldBeVisible() {
        return mClockVisibleByPolicy && mClockVisibleByUser;
    }