summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recent
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-09-19 11:18:19 -0700
committerMichael Jurka <mikejurka@google.com>2011-09-19 11:18:19 -0700
commit7e9c49c8ebef8e03e196d155bf777f2dfc835091 (patch)
tree8d5b471c75ec5ac036009efb1863adb75d68c848 /packages/SystemUI/src/com/android/systemui/recent
parent31f971b57f526e2688241080b30c7e8df33bf62d (diff)
downloadframeworks_base-7e9c49c8ebef8e03e196d155bf777f2dfc835091.zip
frameworks_base-7e9c49c8ebef8e03e196d155bf777f2dfc835091.tar.gz
frameworks_base-7e9c49c8ebef8e03e196d155bf777f2dfc835091.tar.bz2
Fix crash in recent apps
Bug #5332922 Change-Id: I223cdd306c6872cc47c53456da195c0d83c8f8bd
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent')
-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 0621b22..b49309a 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) {