mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Merge "Fixing 'Item removed' announced twice when using accessible DnD" into ub-launcher3-burnaby-polish
This commit is contained in:
@@ -306,14 +306,10 @@ public abstract class ButtonDropTarget extends TextView
|
||||
setOnClickListener(enable ? this : null);
|
||||
}
|
||||
|
||||
protected String getAccessibilityDropConfirmation() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
LauncherAppState.getInstance().getAccessibilityDelegate()
|
||||
.handleAccessibleDrop(this, null, getAccessibilityDropConfirmation());
|
||||
.handleAccessibleDrop(this, null, null);
|
||||
}
|
||||
|
||||
public int getTextColor() {
|
||||
|
||||
@@ -125,9 +125,4 @@ public class DeleteDropTarget extends ButtonDropTarget {
|
||||
dragLayer.animateView(d.dragView, fling, duration, tInterpolator, onAnimationEndRunnable,
|
||||
DragLayer.ANIMATION_END_DISAPPEAR, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getAccessibilityDropConfirmation() {
|
||||
return getResources().getString(R.string.item_removed);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user