Remove redundant a11y announcement upon removal of workspace item.

When a workspace item is removed, launcher currently shows a Snackbar which contains a message saying "item removed". This renders the a11y announcement in DeleteDropTarget#onAccessibilityDrop redundant since it's saying exactly the same string.


Bug: 378032433
Change-Id: Iaf3b42404ecd382b1ee15f670cc4ebe0124218d2
Test: manual
Flag: EXEMPT bugfix
This commit is contained in:
Pinyao Ting committed 2024-11-22 00:34:03 +00:00
1 parent d4fb56f36b
commit 604ae3283c
2 files changed
+10 -6

No files matched your search

@@ -130,7 +130,6 @@ public class DeleteDropTarget extends ButtonDropTarget {
public void completeDrop(DragObject d) {
ItemInfo item = d.dragInfo;
if (canRemove(item)) {
onAccessibilityDrop(null, item);
mDropTargetHandler.onDeleteComplete(item);
}
}