From f64f9a14d8289387618e472037afa537f25d3641 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Wed, 23 Jun 2021 16:35:11 -0700 Subject: [PATCH] Ensure InputConsumer is non-null in remaining cases Anywhere that was using mResetGestureInputConsumer now uses getDefaultInputConsumer, which returns NO_OP if mResetGestureInputConsumer is null. Test: none Bug: 191684742 Change-Id: I1ae02b01a9629fa0830955dfe4d83c95a4759c14 --- .../quickstep/TouchInteractionService.java | 42 +++++++++++-------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index c9b68dfe34..84f7e83737 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -64,6 +64,7 @@ import android.view.Surface; import android.view.accessibility.AccessibilityManager; import androidx.annotation.BinderThread; +import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.UiThread; import androidx.annotation.WorkerThread; @@ -303,10 +304,10 @@ public class TouchInteractionService extends Service implements PluginListener