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
33import android.Manifest
44import android.content.pm.PackageManager
55import android.os.Bundle
6+ import android.view.KeyEvent
67import android.view.LayoutInflater
78import android.view.View
89import android.view.ViewGroup
@@ -195,6 +196,11 @@ class SearchLocationFragment : Fragment() {
195196 return false
196197 }
197198 })
199+ rootView.locationSearchView.locationSearchView.setOnKeyListener { _, keyCode, _ ->
200+ if (keyCode == KeyEvent .KEYCODE_BACK )
201+ rootView.locationSearchView.clearFocus()
202+ true
203+ }
198204 searchLocationViewModel.handlePlaceSuggestions(subject)
199205 }
200206
You can’t perform that action at this time.
0 commit comments