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

Commit 980a44e6 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed an issue where isFalseTouch could be queried

We shouldn't forward any touches if we're not on the
lockscreen.

Test: drag down, turn of the screen
Change-Id: I90acdd7e57322227042b98741721fec977b80f97
Fixes: 63165400
parent d836c4f8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import com.android.systemui.Gefingerpoken;
import com.android.systemui.Interpolators;
import com.android.systemui.R;
import com.android.systemui.classifier.FalsingManager;
import com.android.systemui.statusbar.phone.StatusBar;

/**
 * A utility class to enable the downward swipe on the lockscreen to go to the full shade and expand
@@ -149,6 +150,9 @@ public class DragDownHelper implements Gefingerpoken {
    }

    private boolean isFalseTouch() {
        if (!mDragDownCallback.isFalsingCheckNeeded()) {
            return false;
        }
        return mFalsingManager.isFalseTouch() || !mDraggedFarEnough;
    }

@@ -249,5 +253,6 @@ public class DragDownHelper implements Gefingerpoken {
        void onCrossedThreshold(boolean above);
        void onTouchSlopExceeded();
        void setEmptyDragAmount(float amount);
        boolean isFalsingCheckNeeded();
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -4943,6 +4943,11 @@ public class StatusBar extends SystemUI implements DemoMode,
        mNotificationPanel.setEmptyDragAmount(amount);
    }

    @Override
    public boolean isFalsingCheckNeeded() {
        return mState == StatusBarState.KEYGUARD;
    }

    /**
     * If secure with redaction: Show bouncer, go to unlocked shade.
     *