Fix RTL crash
This commit is contained in:
parent
56d865c01b
commit
820c18de7c
1 changed files with 26 additions and 24 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue