From 536ab324be459f503bc0e56713d014240c2eb63e Mon Sep 17 00:00:00 2001 From: langsmith Date: Fri, 9 Aug 2019 18:45:21 -0700 Subject: [PATCH] Showing keyboard and focusing on editText when PlaceAutocompleteFragment starts --- .../places/autocomplete/ui/PlaceAutocompleteFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/autocomplete/ui/PlaceAutocompleteFragment.java b/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/autocomplete/ui/PlaceAutocompleteFragment.java index a0fc794a6..521945939 100644 --- a/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/autocomplete/ui/PlaceAutocompleteFragment.java +++ b/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/autocomplete/ui/PlaceAutocompleteFragment.java @@ -96,6 +96,8 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); resultScrollView.getViewTreeObserver().addOnScrollChangedListener(this); styleView(); + KeyboardUtils.showKeyboard(getActivity().getWindow().getDecorView()); + searchView.requestFocus(); } private void styleView() {