summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2015-04-04 11:53:14 -0700
committerWale Ogunwale <ogunwale@google.com>2015-04-04 15:38:32 -0700
commitd351ada8f93415b09f7536c64e303d55c7b97680 (patch)
tree08ee8327a72d424e04a740b523baa23f44a3487f /packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
parent000957cef387dc7d08fc6563e2221e9023194984 (diff)
downloadframeworks_base-d351ada8f93415b09f7536c64e303d55c7b97680.zip
frameworks_base-d351ada8f93415b09f7536c64e303d55c7b97680.tar.gz
frameworks_base-d351ada8f93415b09f7536c64e303d55c7b97680.tar.bz2
Dismiss recents to home without animation when resizing task.
Bug: 19946163 Change-Id: I87441e03556d775119f851f7ad49368fc1be49f7
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
index f014f09..fc8f8a5 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
@@ -345,6 +345,12 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
}
}
+ /** Dismisses Recents directly to Home without transition animation. */
+ void dismissRecentsToHomeWithoutTransitionAnimation() {
+ finish();
+ overridePendingTransition(0, 0);
+ }
+
/** Dismisses Recents directly to Home if we currently aren't transitioning. */
boolean dismissRecentsToHome(boolean animated) {
SystemServicesProxy ssp = RecentsTaskLoader.getInstance().getSystemServicesProxy();