diff options
author | Winson Chung <winsonc@google.com> | 2014-04-03 21:07:56 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-04-03 21:07:56 +0000 |
commit | b9a7d8c2c46e71f756da69d7682bfc594b2a91ed (patch) | |
tree | d636abb255ca6d6cf773804b8d5740572e172aa6 /packages/SystemUI/src/com/android/systemui/recents/SystemServicesProxy.java | |
parent | eb6387c16149e4d84dcb15427bb7ca8d0495554d (diff) | |
parent | 5e3e5d8945249cfeb8bd59de112be88954ba62bf (diff) | |
download | frameworks_base-b9a7d8c2c46e71f756da69d7682bfc594b2a91ed.zip frameworks_base-b9a7d8c2c46e71f756da69d7682bfc594b2a91ed.tar.gz frameworks_base-b9a7d8c2c46e71f756da69d7682bfc594b2a91ed.tar.bz2 |
Merge "Adding activity icon to the task view"
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents/SystemServicesProxy.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/SystemServicesProxy.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/SystemServicesProxy.java b/packages/SystemUI/src/com/android/systemui/recents/SystemServicesProxy.java index 57d6524..f147fbc 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/SystemServicesProxy.java +++ b/packages/SystemUI/src/com/android/systemui/recents/SystemServicesProxy.java @@ -30,6 +30,7 @@ import android.graphics.drawable.Drawable; import java.util.ArrayList; import java.util.List; +import java.util.Random; /** * Acts as a shim around the real system services that we need to access data from, and provides @@ -76,8 +77,11 @@ public class SystemServicesProxy { rti.id = rti.persistentId = i; rti.baseIntent = new Intent(); rti.baseIntent.setComponent(cn); - rti.description = rti.activityLabel = "Recent Task"; - rti.activityIcon = Bitmap.createBitmap(mDummyIcon); + rti.description = rti.activityLabel = + Long.toString(Math.abs(new Random().nextLong()), 36); + if (i % 2 == 0) { + rti.activityIcon = Bitmap.createBitmap(mDummyIcon); + } tasks.add(rti); } return tasks; |