pulse-id/CustomAutoCompleteLocation

focusableInTouchMode = true is mandatory?

Opened this issue · 1 comments

I've loved this library and have noticed one serious problem with it. If I just used the LocationAutoCompleteView as follows

<com.shishank.autocompletelocationview.LocationAutoCompleteView
      android:id="@+id/autocomplete_view"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"
      android:layout_margin="12dp"
      android:background="@drawable/white_bg"
      android:focusableInTouchMode="true"
      android:hint="@string/place_autocomplete_search_hint"
      android:paddingBottom="10dp"
      android:paddingLeft="10dp"
      android:paddingRight="10dp"
      android:paddingTop="10dp"
      android:textColor="#000000"
      android:textColorHint="@android:color/darker_gray"
      android:textSize="17sp" />

The keyboard is opened as soon as the activity starts and the user can start typing a location and it works all fine.
But if I remove the android:focusableInTouchMode="true" attribute, the keyboard never appears even though if I click the view again and again.

The keyboard DOES NOT open.

Please fix this issue, such that whenever the view is clicked the keyboard should open so that the user can start typing a location.

My gradle

implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.0.0'
implementation 'com.github.pulse-id:CustomAutoCompleteLocation:v1.0'

@nishat0403 Thank you for reporting the bug, we'll fix it and release it in next version.