Merge pull request #8379 from osmandapp/Fix_7970_poi_note_keyboard

Fix #7970 OSM Note text box no longer focused automatically
This commit is contained in:
max-klaus 2020-02-03 15:18:04 +03:00 committed by GitHub
commit 1670e4021a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -450,6 +450,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
if (!Algorithms.isEmpty(text)) { if (!Algorithms.isEmpty(text)) {
((EditText) view.findViewById(R.id.message_field)).setText(text); ((EditText) view.findViewById(R.id.message_field)).setText(text);
} }
view.findViewById(R.id.message_field).requestFocus();
AndroidUtils.softKeyboardDelayed(view.findViewById(R.id.message_field)); AndroidUtils.softKeyboardDelayed(view.findViewById(R.id.message_field));
final AlertDialog.Builder builder = new AlertDialog.Builder(activity); final AlertDialog.Builder builder = new AlertDialog.Builder(activity);