diff options
author | Michael Jurka <mikejurka@google.com> | 2013-05-08 18:00:04 +0200 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2013-05-08 20:48:36 +0200 |
commit | f42d9010f1c7b47ca9d5e395c767eecf4d284daa (patch) | |
tree | c35834ea9aa2ec3a64ade2b69e1f6c3596711b2f /packages/SystemUI/src/com/android/systemui/recent | |
parent | 366b97ba25de237c42c815c5e8ca36303ce104df (diff) | |
download | frameworks_base-f42d9010f1c7b47ca9d5e395c767eecf4d284daa.zip frameworks_base-f42d9010f1c7b47ca9d5e395c767eecf4d284daa.tar.gz frameworks_base-f42d9010f1c7b47ca9d5e395c767eecf4d284daa.tar.bz2 |
Fix bug where thumbnails flashed more often in Recents
Bug: 8867698
Change-Id: I2773601d83507dbb55c3a1d0b723e3853e22d352
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java index 32759de..c64b954 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java @@ -46,6 +46,7 @@ import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.ViewPropertyAnimator; +import android.view.ViewRootImpl; import android.view.accessibility.AccessibilityEvent; import android.view.animation.AnimationUtils; import android.view.animation.DecelerateInterpolator; @@ -365,6 +366,14 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener } } + protected void onAttachedToWindow () { + super.onAttachedToWindow(); + final ViewRootImpl root = getViewRootImpl(); + if (root != null) { + root.setDrawDuringWindowsAnimating(true); + } + } + public void onUiHidden() { mCallUiHiddenBeforeNextReload = false; if (!mShowing && mRecentTaskDescriptions != null) { @@ -562,7 +571,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener !mRecentTasksLoader.isFirstScreenful()) { int timeSinceWindowAnimation = (int) (System.currentTimeMillis() - mWindowAnimationStartTime); - final int minStartDelay = 125; + final int minStartDelay = 150; final int startDelay = Math.max(0, Math.min( minStartDelay - timeSinceWindowAnimation, minStartDelay)); final int duration = 250; |