Skip handling input while the user is still locked

- None of the gestures work when the user is locked so
  we can just skip them.

Bug: 143107728
Test: Manual
Change-Id: I2661d58269f7eccbfcd2214792c128b432e0347c
(cherry picked from commit fc8c975880)
This commit is contained in:
Winson Chung authored and android-build-team Robot committed 2019-10-25 20:01:20 +00:00
1 parent 16fdeda6a6
commit d1e003be69
1 file changed
+3
@@ -416,6 +416,9 @@ public class TouchInteractionService extends Service implements
Log.e(TAG, "Unknown event " + ev);
return;
}
if (!mDeviceState.isUserUnlocked()) {
return;
}
Object traceToken = TraceHelper.INSTANCE.beginFlagsOverride(
TraceHelper.FLAG_ALLOW_BINDER_TRACKING);