Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74fd1dd5 authored by Jim Miller's avatar Jim Miller
Browse files

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
parent 4e6319b7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);