File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
app/src/main/java/org/fossasia/openevent/general/search/location Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package org.fossasia.openevent.general.search.location
3
3
import android.Manifest
4
4
import android.content.pm.PackageManager
5
5
import android.os.Bundle
6
+ import android.view.KeyEvent
6
7
import android.view.LayoutInflater
7
8
import android.view.View
8
9
import android.view.ViewGroup
@@ -195,6 +196,11 @@ class SearchLocationFragment : Fragment() {
195
196
return false
196
197
}
197
198
})
199
+ rootView.locationSearchView.locationSearchView.setOnKeyListener { _, keyCode, _ ->
200
+ if (keyCode == KeyEvent .KEYCODE_BACK )
201
+ rootView.locationSearchView.clearFocus()
202
+ true
203
+ }
198
204
searchLocationViewModel.handlePlaceSuggestions(subject)
199
205
}
200
206
You can’t perform that action at this time.
0 commit comments