fix show keyboard after open osm note

This commit is contained in:
Skalii 2021-02-16 17:42:14 +02:00
parent 8ff6eff178
commit 2465e96449

View file

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