commit | f4e8474dd05b287f487be43157576a9aa081b417 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Wed Apr 10 14:15:43 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Wed Apr 10 14:15:43 2019 -0700 |
tree | d6fbdbbd3cdcda195701a57ab805ad9f2d46a8b2 | |
parent | 5e9fa344e74482a58fb3ae998c138ce4de8b685a [diff] | |
parent | 9bbbe9cc1457485a376be639dc34ddcd19bc92e5 [diff] |
Use DeviceLockedInputConsumer if !mIsUserUnlocked am: 9bbbe9cc14 Change-Id: I54f72f969479bd387c9ad24ddd6e627abba02427
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java index 8b7009a..3ea8de0 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java
@@ -425,7 +425,7 @@ 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);