App title in Widget list shouldn't be actionable by a11y methods
Bug:139913027
Test:Manual
Change-Id: I2a5d5551d09ee2bc96444164ed77225a3b4a829a
(cherry picked from commit d3720c210b)
This commit is contained in:
@@ -58,6 +58,10 @@ public class LauncherSettings {
|
||||
*/
|
||||
public static final String ITEM_TYPE = "itemType";
|
||||
|
||||
/**
|
||||
* The gesture is a package
|
||||
*/
|
||||
public static final int ITEM_TYPE_NON_ACTIONABLE = -1;
|
||||
/**
|
||||
* The gesture is an application
|
||||
*/
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.launcher3.model;
|
||||
|
||||
import com.android.launcher3.ItemInfoWithIcon;
|
||||
import com.android.launcher3.LauncherSettings;
|
||||
|
||||
/**
|
||||
* Represents a {@link Package} in the widget tray section.
|
||||
@@ -30,10 +31,12 @@ public class PackageItemInfo extends ItemInfoWithIcon {
|
||||
|
||||
public PackageItemInfo(String packageName) {
|
||||
this.packageName = packageName;
|
||||
this.itemType = LauncherSettings.Favorites.ITEM_TYPE_NON_ACTIONABLE;
|
||||
}
|
||||
|
||||
public PackageItemInfo(PackageItemInfo copy) {
|
||||
this.packageName = copy.packageName;
|
||||
this.itemType = LauncherSettings.Favorites.ITEM_TYPE_NON_ACTIONABLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user