From 7e9c49c8ebef8e03e196d155bf777f2dfc835091 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 19 Sep 2011 11:18:19 -0700 Subject: Fix crash in recent apps Bug #5332922 Change-Id: I223cdd306c6872cc47c53456da195c0d83c8f8bd --- .../SystemUI/src/com/android/systemui/recent/RecentsPanelView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 descriptions = mActivityDescriptions; + final ArrayList descriptions = + new ArrayList(mActivityDescriptions); loadActivityDescription(descriptions.get(0), 0); applyActivityDescription(descriptions.get(0), 0, false); if (descriptions.size() > 1) { -- cgit v1.2.3-59-g8ed1b