mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
fix
This commit is contained in:
parent
eaf339b92f
commit
c7f05eee30
@ -16,23 +16,10 @@
|
||||
}
|
||||
],
|
||||
"attributes": [],
|
||||
"versionCode": 15,
|
||||
"versionName": "0.4.1",
|
||||
"versionCode": 16,
|
||||
"versionName": "0.4.2",
|
||||
"outputFile": "app-x86_64-release.apk"
|
||||
},
|
||||
{
|
||||
"type": "ONE_OF_MANY",
|
||||
"filters": [
|
||||
{
|
||||
"filterType": "ABI",
|
||||
"value": "x86"
|
||||
}
|
||||
],
|
||||
"attributes": [],
|
||||
"versionCode": 15,
|
||||
"versionName": "0.4.1",
|
||||
"outputFile": "app-x86-release.apk"
|
||||
},
|
||||
{
|
||||
"type": "ONE_OF_MANY",
|
||||
"filters": [
|
||||
@ -42,10 +29,23 @@
|
||||
}
|
||||
],
|
||||
"attributes": [],
|
||||
"versionCode": 15,
|
||||
"versionName": "0.4.1",
|
||||
"versionCode": 16,
|
||||
"versionName": "0.4.2",
|
||||
"outputFile": "app-arm64-v8a-release.apk"
|
||||
},
|
||||
{
|
||||
"type": "ONE_OF_MANY",
|
||||
"filters": [
|
||||
{
|
||||
"filterType": "ABI",
|
||||
"value": "x86"
|
||||
}
|
||||
],
|
||||
"attributes": [],
|
||||
"versionCode": 16,
|
||||
"versionName": "0.4.2",
|
||||
"outputFile": "app-x86-release.apk"
|
||||
},
|
||||
{
|
||||
"type": "ONE_OF_MANY",
|
||||
"filters": [
|
||||
@ -55,8 +55,8 @@
|
||||
}
|
||||
],
|
||||
"attributes": [],
|
||||
"versionCode": 15,
|
||||
"versionName": "0.4.1",
|
||||
"versionCode": 16,
|
||||
"versionName": "0.4.2",
|
||||
"outputFile": "app-armeabi-v7a-release.apk"
|
||||
}
|
||||
],
|
||||
|
@ -22,7 +22,7 @@ class SearchResultFragment : Fragment() {
|
||||
private val TAG = "SearchResultFragment"
|
||||
private lateinit var binding: FragmentSearchResultBinding
|
||||
|
||||
private lateinit var nextPage: String
|
||||
private var nextPage: String? = null
|
||||
private var query: String = ""
|
||||
|
||||
private lateinit var searchAdapter: SearchAdapter
|
||||
@ -71,7 +71,7 @@ class SearchResultFragment : Fragment() {
|
||||
binding.searchRecycler.viewTreeObserver
|
||||
.addOnScrollChangedListener {
|
||||
if (!binding.searchRecycler.canScrollVertically(1)) {
|
||||
fetchNextSearchItems()
|
||||
if (nextPage != null) fetchNextSearchItems()
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -99,7 +99,7 @@ class SearchResultFragment : Fragment() {
|
||||
binding.noSearchResult.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
nextPage = response.nextpage!!
|
||||
nextPage = response.nextpage
|
||||
}
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ class SearchResultFragment : Fragment() {
|
||||
RetrofitInstance.api.getSearchResultsNextPage(
|
||||
query,
|
||||
apiSearchFilter,
|
||||
nextPage
|
||||
nextPage!!
|
||||
)
|
||||
} catch (e: IOException) {
|
||||
println(e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user