diff options
author | Kenny Guy <kennyguy@google.com> | 2014-06-20 21:24:53 +0100 |
---|---|---|
committer | Kenny Guy <kennyguy@google.com> | 2014-06-23 16:42:37 +0100 |
commit | 01453e855fa87ee19f61223b2b1a6965071ee95a (patch) | |
tree | ffe8620af0bf0f072f4ae231ad11c28024ebbec5 /src/com/android/launcher3/ItemInfo.java | |
parent | 74b68a409766db18630f8131ca93b9269afab22e (diff) | |
download | android_packages_apps_Trebuchet-01453e855fa87ee19f61223b2b1a6965071ee95a.tar.gz android_packages_apps_Trebuchet-01453e855fa87ee19f61223b2b1a6965071ee95a.tar.bz2 android_packages_apps_Trebuchet-01453e855fa87ee19f61223b2b1a6965071ee95a.zip |
Add content description to bagded icons.
Enabled accesibility so that icons badged by the
managed profile have a content description
that is different to the non-bagdged version.
Bug: 15106236
Change-Id: Id483273173d9539916eebd59111d179087526be3
Diffstat (limited to 'src/com/android/launcher3/ItemInfo.java')
-rw-r--r-- | src/com/android/launcher3/ItemInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/ItemInfo.java b/src/com/android/launcher3/ItemInfo.java index 74f16e325..fe030171b 100644 --- a/src/com/android/launcher3/ItemInfo.java +++ b/src/com/android/launcher3/ItemInfo.java @@ -108,6 +108,11 @@ public class ItemInfo { CharSequence title; /** + * Content description of the item. + */ + String contentDescription; + + /** * The position of the item in a drag-and-drop operation. */ int[] dropPos = null; @@ -115,6 +120,7 @@ public class ItemInfo { UserHandleCompat user; ItemInfo() { + user = UserHandleCompat.myUserHandle(); } ItemInfo(ItemInfo info) { @@ -127,6 +133,7 @@ public class ItemInfo { itemType = info.itemType; container = info.container; user = info.user; + contentDescription = info.contentDescription; // tempdebug: LauncherModel.checkItemInfo(this); } |