summaryrefslogtreecommitdiffstats
path: root/go/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
diff options
context:
space:
mode:
authorKevin <kevhan@google.com>2019-03-21 11:51:06 -0700
committerKevin <kevhan@google.com>2019-03-22 12:53:02 -0700
commitc977ea9a3c492b288c34efc295a8824f3d5a3f67 (patch)
tree99d269923bc3b5a7f6b5061e52afa42b25006d47 /go/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
parent969e7a6c5723157298f3ff325671404ec72676cc (diff)
downloadandroid_packages_apps_Trebuchet-c977ea9a3c492b288c34efc295a8824f3d5a3f67.tar.gz
android_packages_apps_Trebuchet-c977ea9a3c492b288c34efc295a8824f3d5a3f67.tar.bz2
android_packages_apps_Trebuchet-c977ea9a3c492b288c34efc295a8824f3d5a3f67.zip
Add overview button handling to Go recents.
Add the same overview button handling as in the original launcher. Specifically, pressing overview on recents will launch the next appropriate task (e.g. the next most recent task if you came from an app). Bug: 114136250 Test: Go to recents from launcher, press overview => launch task. Test: Go to recents from app, press overview => launches next task Change-Id: I946974b4c2b65b6d0f212d8e8c0816983386d952
Diffstat (limited to 'go/quickstep/src/com/android/quickstep/OverviewCommandHelper.java')
-rw-r--r--go/quickstep/src/com/android/quickstep/OverviewCommandHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/quickstep/src/com/android/quickstep/OverviewCommandHelper.java b/go/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
index d9873fe5e..379cc100e 100644
--- a/go/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
+++ b/go/quickstep/src/com/android/quickstep/OverviewCommandHelper.java
@@ -96,7 +96,7 @@ public class OverviewCommandHelper {
if (recents == null) {
return false;
}
- //TODO: Launch last running task or go to home.
+ recents.handleOverviewCommand();
return true;
}
}
@@ -146,7 +146,7 @@ public class OverviewCommandHelper {
protected boolean handleCommand(long elapsedTime) {
IconRecentsView recents = mHelper.getVisibleRecentsView();
if (recents != null) {
- //TODO: Launch next task in icon recents.
+ recents.handleOverviewCommand();
return true;
} else if (elapsedTime < ViewConfiguration.getDoubleTapTimeout()) {
// The user tried to launch back into overview too quickly, either after