Merge pull request #10909 from osmandapp/fix_autofocus_note_text_input

Show keyboard after open OSM Note
This commit is contained in:
Vitaliy 2021-02-16 19:50:03 +02:00 committed by GitHub
commit 021ff51533
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,9 @@ public class BugBottomSheetDialog extends MenuBottomSheetDialogFragment {
textBox.setDefaultHintTextColor(colorStateList);
noteText = osmNoteView.findViewById(R.id.name_edit_text);
noteText.setText(text);
if (noteText.requestFocus()) {
AndroidUtils.showSoftKeyboard(getActivity(), noteText);
}
BaseBottomSheetItem editOsmNote = new BaseBottomSheetItem.Builder()
.setCustomView(osmNoteView)