summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recent
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-05-08 15:05:18 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-08 15:05:18 -0700
commit82f92ee5bddbb03f4efe348288150d133ab52e87 (patch)
tree9bed98ac84895e587e2ba1da7cbd17328d04df40 /packages/SystemUI/src/com/android/systemui/recent
parent2a31741eecfed7d6412d0a8018c5a5ec679c4cd2 (diff)
parent7741b63c5a8e14b5123c4b735dc768cf55fa2ed5 (diff)
downloadframeworks_base-82f92ee5bddbb03f4efe348288150d133ab52e87.zip
frameworks_base-82f92ee5bddbb03f4efe348288150d133ab52e87.tar.gz
frameworks_base-82f92ee5bddbb03f4efe348288150d133ab52e87.tar.bz2
am 7741b63c: am 6dee0a0f: Merge "Fix bug where thumbnails flashed more often in Recents" into jb-mr2-dev
* commit '7741b63c5a8e14b5123c4b735dc768cf55fa2ed5': Fix bug where thumbnails flashed more often in Recents
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java11
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;