commit | 0ca88260694262928bf4b980667e82ab27e55572 | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Mon Dec 07 17:15:16 2015 -0800 |
committer | Jorim Jaggi <jjaggi@google.com> | Tue Dec 08 01:16:58 2015 +0000 |
tree | 12432372de2af98fc326f0cd33c011fbbe8b8c4d | |
parent | 62211c9b7f0ced1c1b0d4b621659fe2c4b1e80f9 [diff] |
Reset recents translation when launching So we don't end up with empty content after having cancelled the drag in gesture. Change-Id: If00c526806816df58c751cd715e0575dbb7adf17
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java index a0a1bac..7ae686e 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
@@ -411,6 +411,8 @@ RecentsActivityLaunchState launchState = Recents.getConfiguration().getLaunchState(); if (launchState.launchedViaDragGesture) { setTranslationY(getMeasuredHeight()); + } else { + setTranslationY(0f); } } }