Autoclose searchView
This commit is contained in:
parent
c07c15c766
commit
700559e28f
|
@ -236,6 +236,8 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
|
|||
override fun onQueryTextSubmit(p0: String?): Boolean {
|
||||
if(!p0.isNullOrBlank()){
|
||||
searchVal = p0
|
||||
pagination = 0
|
||||
searchView.onActionViewCollapsed()
|
||||
searchVideos()
|
||||
}
|
||||
return true
|
||||
|
|
|
@ -107,8 +107,6 @@ class Videos: Client() {
|
|||
}
|
||||
} catch(err:Exception){
|
||||
err?.printStackTrace()
|
||||
Log.d("TypeErr",err?.message ,err.cause)
|
||||
Log.d("Error","fallo la coneccion")
|
||||
}
|
||||
return videos
|
||||
}
|
||||
|
@ -137,8 +135,6 @@ class Videos: Client() {
|
|||
}
|
||||
} catch(err:Exception){
|
||||
err?.printStackTrace()
|
||||
Log.d("TypeErr",err?.message ,err.cause)
|
||||
Log.d("Error","fallo la coneccion")
|
||||
}
|
||||
return videos
|
||||
}
|
||||
|
@ -155,8 +151,6 @@ class Videos: Client() {
|
|||
}
|
||||
} catch(err:Exception){
|
||||
err?.printStackTrace()
|
||||
Log.d("TypeErr",err?.message ,err.cause)
|
||||
Log.d("Error","fallo la coneccion")
|
||||
}
|
||||
return videos
|
||||
}
|
||||
|
@ -174,8 +168,6 @@ class Videos: Client() {
|
|||
}
|
||||
} catch(err:Exception){
|
||||
err?.printStackTrace()
|
||||
Log.d("TypeErr",err?.message ,err.cause)
|
||||
Log.d("Error","fallo la coneccion")
|
||||
}
|
||||
return videos
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue