List item embedded button accessibility fix
In accessibility mode it should be clickable by a regular gesture.
This commit is contained in:
parent
d9a68aaabc
commit
d888126885
2 changed files with 16 additions and 0 deletions
|
@ -425,6 +425,14 @@ public class MapMarkerDialogHelper {
|
|||
move.setVisibility(View.VISIBLE);
|
||||
((ImageView) move).setImageDrawable(app.getIconsCache().getIcon(
|
||||
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() {
|
||||
@Override
|
||||
public void onClick() {
|
||||
|
|
|
@ -483,6 +483,14 @@ public class WaypointDialogHelper {
|
|||
more.setVisibility(View.GONE);
|
||||
((ImageView) move).setImageDrawable(app.getIconsCache().getIcon(
|
||||
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() {
|
||||
@Override
|
||||
public void onClick() {
|
||||
|
|
Loading…
Reference in a new issue