Fix RTL crash

This commit is contained in:
Nazar-Kutz 2020-05-08 14:29:20 +03:00
parent 56d865c01b
commit 820c18de7c

View file

@ -293,6 +293,7 @@ public class AddPOIAction extends QuickAction {
@Override @Override
public boolean onTouch(final View v, MotionEvent event) { public boolean onTouch(final View v, MotionEvent event) {
final EditText editText = (EditText) v; final EditText editText = (EditText) v;
if (event.getAction() == MotionEvent.ACTION_UP) {
final int DRAWABLE_END = 2; final int DRAWABLE_END = 2;
int expandBtnWidth = AndroidUtils.getCompoundDrawables(editText)[DRAWABLE_END].getBounds().width(); int expandBtnWidth = AndroidUtils.getCompoundDrawables(editText)[DRAWABLE_END].getBounds().width();
@ -321,6 +322,7 @@ public class AddPOIAction extends QuickAction {
f.show(activity.getSupportFragmentManager(), "PoiSubTypeDialogFragment"); f.show(activity.getSupportFragmentManager(), "PoiSubTypeDialogFragment");
return true; return true;
} }
}
return false; return false;
} }
}); });