summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Jurka <mikejurka@google.com> 2011-09-19 11:18:19 -0700
committer Michael Jurka <mikejurka@google.com> 2011-09-19 11:18:19 -0700
commit7e9c49c8ebef8e03e196d155bf777f2dfc835091 (patch)
tree8d5b471c75ec5ac036009efb1863adb75d68c848
parent31f971b57f526e2688241080b30c7e8df33bf62d (diff)
Fix crash in recent apps
Bug #5332922 Change-Id: I223cdd306c6872cc47c53456da195c0d83c8f8bd
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
index 0621b2203a80..b49309a43d3b 100644
--- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
@@ -589,7 +589,8 @@ public class RecentsPanelView extends RelativeLayout
if (mActivityDescriptions.size() > 0) {
if (DEBUG) Log.v(TAG, "Showing " + mActivityDescriptions.size() + " apps");
updateUiElements(getResources().getConfiguration());
- final ArrayList<ActivityDescription> descriptions = mActivityDescriptions;
+ final ArrayList<ActivityDescription> descriptions =
+ new ArrayList<ActivityDescription>(mActivityDescriptions);
loadActivityDescription(descriptions.get(0), 0);
applyActivityDescription(descriptions.get(0), 0, false);
if (descriptions.size() > 1) {