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

Commit 8df5ba9c authored by Roman Birg's avatar Roman Birg
Browse files

SystemUI: fix status bar brightness slider eating events



In some cases it would eat the event and not lose focus to the rest of
the system.

Change-Id: I94d532d09ea762edf7ac037043ed023caf42c401
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 5ff043df
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -2713,19 +2713,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
        }
        if (mBrightnessChanged && upOrCancel) {
            mBrightnessChanged = false;
            if (mJustPeeked) {
                /**
                 * if we were just peeking, eat the event and collapse the status bar, otherwise
                 * the event gets passed down and a full expand might happen.
                 */
            if (mJustPeeked && mExpandedVisible) {
                mNotificationPanel.fling(10, false);
                if (mExpandedVisible) {
                    mExpandedVisible = false;
                    visibilityChanged(false);
                    setInteracting(StatusBarManager.WINDOW_STATUS_BAR, false);
                }
                disable(mDisabledUnmodified, true /* animate */);
                return true;
            }
        }
        return false;