mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Fixed a small bug
This commit is contained in:
parent
900aa3d9ee
commit
f21f8dd133
@ -27,7 +27,6 @@ import com.github.libretube.adapters.SearchHistoryAdapter
|
|||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import org.chromium.base.ThreadUtils.runOnUiThread
|
|
||||||
import retrofit2.HttpException
|
import retrofit2.HttpException
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
|
|
||||||
@ -38,7 +37,7 @@ class SearchFragment : Fragment() {
|
|||||||
private var nextPage : String? = null
|
private var nextPage : String? = null
|
||||||
private lateinit var searchRecView : RecyclerView
|
private lateinit var searchRecView : RecyclerView
|
||||||
private var searchAdapter : SearchAdapter? = null
|
private var searchAdapter : SearchAdapter? = null
|
||||||
private var isLoading : Boolean = false
|
private var isLoading : Boolean = true
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
@ -204,7 +203,7 @@ class SearchFragment : Fragment() {
|
|||||||
searchRecView.adapter = searchAdapter
|
searchRecView.adapter = searchAdapter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
isLoading = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,7 +214,7 @@ class SearchFragment : Fragment() {
|
|||||||
val response = try {
|
val response = try {
|
||||||
RetrofitInstance.api.getSearchResultsNextPage(
|
RetrofitInstance.api.getSearchResultsNextPage(
|
||||||
query!!,
|
query!!,
|
||||||
apiSearchFilter,
|
apiSearchFilter!!,
|
||||||
nextPage!!
|
nextPage!!
|
||||||
)
|
)
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user