summaryrefslogtreecommitdiffstats
path: root/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-06-28 12:04:36 -0700
committervadimt <vadimt@google.com>2019-07-11 14:17:06 -0700
commit853852351f3b1bd9fbaa063b0e99cd8067e61c50 (patch)
tree5ec47d595605c6c56538a410fd491f1d8efc8df9 /quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java
parentf11dd8e1077ca229e228afd6a39e7b22d12105f7 (diff)
downloadandroid_packages_apps_Trebuchet-853852351f3b1bd9fbaa063b0e99cd8067e61c50.tar.gz
android_packages_apps_Trebuchet-853852351f3b1bd9fbaa063b0e99cd8067e61c50.tar.bz2
android_packages_apps_Trebuchet-853852351f3b1bd9fbaa063b0e99cd8067e61c50.zip
Correctly restarting Launcher from OOP tests
Waiting for touch interaction service; waiting for package-restart events. Bug: 136215685 Change-Id: I0c31c09fe3a58b898168dfdb4e4d23757b94a47c
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java')
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java7
1 files changed, 7 insertions, 0 deletions
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 0ef2f5c5a..dd0402453 100644
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java
@@ -226,12 +226,17 @@ public class TouchInteractionService extends Service implements
};
private static boolean sConnected = false;
+ private static boolean sInputMonitorInitialized = false;
private static final SwipeSharedState sSwipeSharedState = new SwipeSharedState();
public static boolean isConnected() {
return sConnected;
}
+ public static boolean isInputMonitorInitialized() {
+ return sInputMonitorInitialized;
+ }
+
public static SwipeSharedState getSwipeSharedState() {
return sSwipeSharedState;
}
@@ -325,6 +330,7 @@ public class TouchInteractionService extends Service implements
mInputMonitorCompat.dispose();
mInputMonitorCompat = null;
}
+ sInputMonitorInitialized = false;
}
private void initInputMonitor() {
@@ -342,6 +348,7 @@ public class TouchInteractionService extends Service implements
Log.e(TAG, "Unable to create input monitor", e);
}
initTouchBounds();
+ sInputMonitorInitialized = true;
}
private int getNavbarSize(String resName) {