commit | 15ba53a54c8b319e3ccdffa586fab1cfcd8971e5 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Thu Jul 12 11:21:32 2012 -0700 |
committer | Winson Chung <winsonc@google.com> | Thu Jul 12 11:21:52 2012 -0700 |
tree | 61525d3c86390144ee1796cbaf0ea84795759a6a | |
parent | 8d4fa3935545b46d835dbcdc614ff5e353f30216 [diff] [blame] |
Fixing concurrent modification exception. (Bug 6807320) Change-Id: Id7848612c04f74d867c0ce21105628c162ba9b70
diff --git a/src/com/android/launcher2/LauncherAnimUtils.java b/src/com/android/launcher2/LauncherAnimUtils.java index 8a4633e..74fde48 100644 --- a/src/com/android/launcher2/LauncherAnimUtils.java +++ b/src/com/android/launcher2/LauncherAnimUtils.java
@@ -48,7 +48,8 @@ } public static void onDestroyActivity() { - for (Animator a : sAnimators) { + HashSet<Animator> animators = new HashSet<Animator>(sAnimators); + for (Animator a : animators) { if (a.isRunning()) { a.cancel(); }