Add accessibility actions for "REMOVE", "UNINSTALL" & "Widget Settings"
Bug: 279800472 Flag: EXEMPT BUGFIX Test: Talkback & VoiceAccess Change-Id: I78387020cf23910fad5f7b98f9501bc1eb410a72
This commit is contained in:
1 parent
dbf9dee5a6
commit
a8afda25da
5 files changed
+44
-21
No files matched your search
@@ -224,7 +224,10 @@ public abstract class ButtonDropTarget extends TextView
|
||||
|
||||
protected abstract boolean supportsDrop(ItemInfo info);
|
||||
|
||||
public abstract boolean supportsAccessibilityDrop(ItemInfo info, View view);
|
||||
/**
|
||||
* Returns the accessibility action that {@link ButtonDropTarget} supports for the itemInfo.
|
||||
*/
|
||||
public abstract int getSupportedAccessibilityAction(ItemInfo info, View view);
|
||||
|
||||
@Override
|
||||
public boolean isDropEnabled() {
|
||||
@@ -276,7 +279,8 @@ public abstract class ButtonDropTarget extends TextView
|
||||
@Override
|
||||
public void prepareAccessibilityDrop() { }
|
||||
|
||||
public abstract void onAccessibilityDrop(View view, ItemInfo item);
|
||||
/** Performs a drop in case of accessibility services with the provided action for the item. */
|
||||
public abstract void onAccessibilityDrop(View view, ItemInfo item, int action);
|
||||
|
||||
public abstract void completeDrop(DragObject d);
|
||||
|
||||
|
||||
Reference in new issue
Block a user