diff --git a/app/src/main/java/awais/instagrabber/viewmodels/SearchFragmentViewModel.kt b/app/src/main/java/awais/instagrabber/viewmodels/SearchFragmentViewModel.kt index d7ae5908..a479a903 100644 --- a/app/src/main/java/awais/instagrabber/viewmodels/SearchFragmentViewModel.kt +++ b/app/src/main/java/awais/instagrabber/viewmodels/SearchFragmentViewModel.kt @@ -47,7 +47,7 @@ class SearchFragmentViewModel(application: Application) : AppStateViewModel(appl private val searchCallback: Debouncer.Callback = object : Debouncer.Callback { override fun call(key: String) { if (tempQuery == null) return - query.postValue(tempQuery) + query.postValue(tempQuery!!) } override fun onError(t: Throwable) {