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

Commit 0e0942d5 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Hide top and bottom bar while dozing

Bug: 18903923
Change-Id: I7b222f9dd168101084f3ee4cbbe6f9495818eab4
parent b5766468
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -998,6 +998,9 @@ public class NotificationPanelView extends PanelView implements
                mAfforanceHelper.updatePreviews();
            }
        }
        if (keyguardShowing) {
            updateDozingVisibilities(false /* animate */);
        }
        resetVerticalPanelPosition();
        updateQsState();
    }
@@ -2109,6 +2112,10 @@ public class NotificationPanelView extends PanelView implements
    public void setDozing(boolean dozing, boolean animate) {
        if (dozing == mDozing) return;
        mDozing = dozing;
        updateDozingVisibilities(animate);
    }

    private void updateDozingVisibilities(boolean animate) {
        if (mDozing) {
            mKeyguardStatusBar.setVisibility(View.INVISIBLE);
            mKeyguardBottomArea.setVisibility(View.INVISIBLE);