List item embedded button accessibility fix

In accessibility mode it should be clickable by a regular gesture.
This commit is contained in:
Igor B. Poretsky 2016-04-08 04:31:49 +03:00
parent d9a68aaabc
commit d888126885
2 changed files with 16 additions and 0 deletions

View file

@ -425,6 +425,14 @@ public class MapMarkerDialogHelper {
move.setVisibility(View.VISIBLE); move.setVisibility(View.VISIBLE);
((ImageView) move).setImageDrawable(app.getIconsCache().getIcon( ((ImageView) move).setImageDrawable(app.getIconsCache().getIcon(
R.drawable.ic_action_reorder, !nightMode)); R.drawable.ic_action_reorder, !nightMode));
if (app.accessibilityEnabled()) {
move.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
((DynamicListView.DragIcon)view.getTag()).onClick();
}
});
}
move.setTag(new DynamicListView.DragIcon() { move.setTag(new DynamicListView.DragIcon() {
@Override @Override
public void onClick() { public void onClick() {

View file

@ -483,6 +483,14 @@ public class WaypointDialogHelper {
more.setVisibility(View.GONE); more.setVisibility(View.GONE);
((ImageView) move).setImageDrawable(app.getIconsCache().getIcon( ((ImageView) move).setImageDrawable(app.getIconsCache().getIcon(
R.drawable.ic_action_reorder, !nightMode)); R.drawable.ic_action_reorder, !nightMode));
if (app.accessibilityEnabled()) {
move.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
((DragIcon)view.getTag()).onClick();
}
});
}
move.setTag(new DragIcon() { move.setTag(new DragIcon() {
@Override @Override
public void onClick() { public void onClick() {