From 9da18850475505fc5c0dacd3100ae95128b9bd65 Mon Sep 17 00:00:00 2001 From: Winson Date: Tue, 1 Mar 2016 11:56:30 -0800 Subject: [PATCH] Fixing regression in creating dismiss descriptions. Bug: 27411256 Change-Id: I39f56257544d593838349049208fe59f551100eb --- .../src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java b/packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java index 6fef8a24fff3..abcb563339aa 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java +++ b/packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java @@ -133,7 +133,6 @@ public class RecentsTaskLoadPlan { SparseIntArray affiliatedTaskCounts = new SparseIntArray(); String dismissDescFormat = mContext.getString( R.string.accessibility_recents_item_will_be_dismissed); - Formatter dismissDescFormatter = new Formatter(); long lastStackActiveTime = Prefs.getLong(mContext, Prefs.Key.OVERVIEW_LAST_STACK_TASK_ACTIVE_TIME, 0); if (RecentsDebugFlags.Static.EnableMockTasks) { @@ -184,8 +183,7 @@ public class RecentsTaskLoadPlan { ActivityInfo info = loader.getAndUpdateActivityInfo(taskKey); String title = loader.getAndUpdateActivityTitle(taskKey, t.taskDescription); String contentDescription = loader.getAndUpdateContentDescription(taskKey, res); - String dismissDescription = dismissDescFormatter.format(dismissDescFormat, - contentDescription).toString(); + String dismissDescription = String.format(dismissDescFormat, contentDescription); Drawable icon = isStackTask ? loader.getAndUpdateActivityIcon(taskKey, t.taskDescription, res, false) : null; -- 2.11.0