Merge "Fix 3295530: Fix crash in RecentApps when we have no recents"

This commit is contained in:
Jim Miller
2010-12-19 01:49:33 -08:00
committed by Android (Google) Code Review

View File

@@ -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);