Skip to content

Commit 536ab32

Browse files
langsmithjohan12345
authored andcommitted
Showing keyboard and focusing on editText when PlaceAutocompleteFragment starts
1 parent ec6e6d1 commit 536ab32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/autocomplete/ui/PlaceAutocompleteFragment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
9696
super.onViewCreated(view, savedInstanceState);
9797
resultScrollView.getViewTreeObserver().addOnScrollChangedListener(this);
9898
styleView();
99+
KeyboardUtils.showKeyboard(getActivity().getWindow().getDecorView());
100+
searchView.requestFocus();
99101
}
100102

101103
private void styleView() {

0 commit comments

Comments
 (0)