Call onClick() after ACTION_UP; invalidate view after setting background

This commit is contained in:
alex 2018-02-21 13:23:26 +02:00
parent f6a91b3acf
commit b66f6c72c3

View file

@ -960,12 +960,13 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
int action = event.getAction();
if (action == MotionEvent.ACTION_DOWN) {
v.setBackgroundColor(getResolvedColor(R.color.keyboard_item_bg_pressed));
if (listener != null) {
listener.onClick(v);
}
v.invalidate();
return true;
}
setNormalBackground(v, controlButton);
if (listener != null) {
listener.onClick(v);
}
return false;
}
});