diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java index c5a7df2..a39bef8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java @@ -465,8 +465,10 @@ public class RecentAppsPanel extends RelativeLayout implements StatusBarPanel, O int id = recentTasks.get(i).id; if (title != null && title.length() > 0 && icon != null) { if (DEBUG) Log.v(TAG, "creating activity desc for id=" + id + ", label=" + title); + ActivityManager.TaskThumbnails thumbs = am.getTaskThumbnails( + recentInfo.persistentId); ActivityDescription item = new ActivityDescription( - am.getTaskThumbnail(recentInfo.persistentId), + thumbs != null ? thumbs.mainThumbnail : null, icon, title, recentInfo.description, intent, id, index, info.packageName); activityDescriptions.add(item); |