diff options
author | Jim Miller <jaggies@google.com> | 2010-12-18 04:12:47 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2010-12-18 04:12:47 -0800 |
commit | 74fd1dd59619b0e3f6264a063ce94e19d972bf20 (patch) | |
tree | 963d4e06ad8e012d400efb422aab463a4dc3c4cb /packages | |
parent | 4e6319b73c85082e18d1c532b86336ddd1f8cfaa (diff) | |
download | frameworks_base-74fd1dd59619b0e3f6264a063ce94e19d972bf20.zip frameworks_base-74fd1dd59619b0e3f6264a063ce94e19d972bf20.tar.gz frameworks_base-74fd1dd59619b0e3f6264a063ce94e19d972bf20.tar.bz2 |
Fix 3295530: Fix crash in RecentApps when we have no recents
A change to the Animation framework now throws an exception for
negative durations, which was causing Recents to crash when
there are no recent activities.
Change-Id: I65b7d6b6d5ad4637ae93b44c147ff6193d8c03cc
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java index e0f37ca..edcf096 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java @@ -319,10 +319,8 @@ public class RecentAppsPanel extends LinearLayout implements StatusBarPanel, OnC anim.setDuration((last-first) * STAGGER_ANIMATION_DELAY); anim.setInterpolator(interp); anims.add(anim); - } - if (animate) { - ObjectAnimator anim = ObjectAnimator.ofFloat(mBackgroundProtector, "alpha", + anim = ObjectAnimator.ofFloat(mBackgroundProtector, "alpha", initialAlpha, 1.0f); anim.setDuration(last * STAGGER_ANIMATION_DELAY); anim.setInterpolator(interp); |