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 28c2b97309..ce7a141bae 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java @@ -15,6 +15,7 @@ */ package com.android.quickstep; +import static android.content.Intent.ACTION_CHOOSER; import static android.view.MotionEvent.ACTION_CANCEL; import static android.view.MotionEvent.ACTION_DOWN; import static android.view.MotionEvent.ACTION_UP; @@ -620,7 +621,10 @@ public class TouchInteractionService extends Service implements PluginListener { return activity != null && activity.hasBeenResumed(); } + default boolean isStarted() { + BaseDraggingActivity activity = getCreatedActivity(); + return activity != null && activity.isStarted(); + } + @UiThread @Nullable T getVisibleRecentsView();