Merge pull request #5197 from osmandapp/CoordinateInputSaveKeyboard

change width of first two editTexts
This commit is contained in:
Alexander Sytnyk 2018-04-02 17:57:17 +03:00 committed by GitHub
commit b4ed49e4a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -775,6 +775,10 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
R.id.lon_first_input_et, R.id.lon_second_input_et, R.id.lon_third_input_et, R.id.point_name_et);
for (EditText et : editTexts) {
if (et.getId() == R.id.lon_first_input_et) {
((LinearLayout.LayoutParams) et.getLayoutParams()).weight = editTexts.get(0).getMaxSymbolsCount();
et.requestLayout();
}
if (et.getId() != R.id.point_name_et) {
et.addTextChangedListener(textWatcher);
}else {