mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 09:38:19 +00:00
Merge "DO NOT MERGE: Fix leak when animations are created but never started" into jb-ub-now-indigo-rose
This commit is contained in:
@@ -30,6 +30,7 @@ public class LauncherAnimUtils {
|
||||
static HashSet<Animator> sAnimators = new HashSet<Animator>();
|
||||
static Animator.AnimatorListener sEndAnimListener = new Animator.AnimatorListener() {
|
||||
public void onAnimationStart(Animator animation) {
|
||||
sAnimators.add(animation);
|
||||
}
|
||||
|
||||
public void onAnimationRepeat(Animator animation) {
|
||||
@@ -45,7 +46,6 @@ public class LauncherAnimUtils {
|
||||
};
|
||||
|
||||
public static void cancelOnDestroyActivity(Animator a) {
|
||||
sAnimators.add(a);
|
||||
a.addListener(sEndAnimListener);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user