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

Commit d7201550 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Allow taps to once again penetrate the darkness.

(Tapping on the lights out shadow will now immediately show
the system bar in addition to informing the StatusBarManager
that the system UI chrome should be shown. This allows an
ACTION_DOWN to reach the back/home/whatever buttons even if
it was originally invoked when the lights were out.)

Bug: 3400262
Change-Id: I9b1b5240c003ad510fd65cb606728850d705ef33
parent c38b7c82
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -97,8 +97,6 @@ public class TabletStatusBar extends StatusBar implements
    // Fitts' Law assistance for LatinIME; TODO: replace with a more general approach
    private static final boolean FAKE_SPACE_BAR = true;

    public static final int LIGHTS_ON_DELAY = 5000;

    // The height of the bar, as definied by the build.  It may be taller if we're plugged
    // into hdmi.
    int mNaturalBarHeight = -1;
@@ -391,6 +389,12 @@ public class TabletStatusBar extends StatusBar implements
            new View.OnTouchListener() {
                public boolean onTouch(View v, MotionEvent ev) {
                    if (ev.getAction() == MotionEvent.ACTION_DOWN) {
                        // even though setting the systemUI visibility below will turn these views
                        // on, we need them to come up faster so that they can catch this motion
                        // event
                        mShadow.setVisibility(View.GONE);
                        mBarContents.setVisibility(View.VISIBLE);

                        try {
                            mBarService.setSystemUiVisibility(View.STATUS_BAR_VISIBLE);
                        } catch (RemoteException ex) {