Merge "Fixing 'Item removed' announced twice when using accessible DnD" into ub-launcher3-burnaby-polish

This commit is contained in:
Sunny Goyal
2015-10-01 18:25:28 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 10 deletions

View File

@@ -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() {

View File

@@ -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);
}
}