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

Commit 7796c69c authored by blackhand1001's avatar blackhand1001
Browse files

SystemUI: Set Status bar opaque during drawer pulldown on tablets only

The status bar only needs to be set as opaque when the notification
drawer is pulled down on 600dp and 720dp devices. On phones, this
is unnecessary as the top header of the drawer covers the status
bar on the phone UI. This change makes a huge difference in
reponsiveness on devices that run the phone UI as there is no
longer a delay before the drawer appears when interacting with it
on an activity with transclucent window decor.

Patch Set 3: Fix formatting, adjust comment
Patch Set 5: Delete file derp

Change-Id: I932bb92a5245f0323d3317776efbdc9151db449d
parent 9c498988
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2444,8 +2444,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
    private void checkBarModes() {
        if (mDemoMode) return;
        int sbMode = mStatusBarMode;
        if (panelsEnabled() && (mInteractingWindows & StatusBarManager.WINDOW_STATUS_BAR) != 0) {
            // if panels are expandable, force the status bar opaque on any interaction
        if (panelsEnabled() && !mHasFlipSettings &&
        (mInteractingWindows & StatusBarManager.WINDOW_STATUS_BAR) != 0) {
            // if dual panels are expandable, force the status bar opaque on any interaction
            sbMode = MODE_OPAQUE;
        }
        checkBarMode(sbMode, mStatusBarWindowState, mStatusBarView.getBarTransitions());