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

Commit f4e8474d authored by Tony Wickham's avatar Tony Wickham Committed by android-build-merger
Browse files

Use DeviceLockedInputConsumer if !mIsUserUnlocked

am: 9bbbe9cc

Change-Id: I54f72f969479bd387c9ad24ddd6e627abba02427
parents 5e9fa344 9bbbe9cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -425,7 +425,7 @@ public class TouchInteractionService extends Service implements

    private InputConsumer newConsumer(boolean useSharedState, MotionEvent event) {
        // TODO: this makes a binder call every touch down. we should move to a listener pattern.
        if (mKM.isDeviceLocked()) {
        if (!mIsUserUnlocked || mKM.isDeviceLocked()) {
            // This handles apps launched in direct boot mode (e.g. dialer) as well as apps launched
            // while device is locked even after exiting direct boot mode (e.g. camera).
            return new DeviceLockedInputConsumer(this);