mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
commit
02f0bb5dd7
@ -16,23 +16,10 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 15,
|
"versionCode": 16,
|
||||||
"versionName": "0.4.1",
|
"versionName": "0.4.2",
|
||||||
"outputFile": "app-x86_64-release.apk"
|
"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",
|
"type": "ONE_OF_MANY",
|
||||||
"filters": [
|
"filters": [
|
||||||
@ -42,10 +29,23 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 15,
|
"versionCode": 16,
|
||||||
"versionName": "0.4.1",
|
"versionName": "0.4.2",
|
||||||
"outputFile": "app-arm64-v8a-release.apk"
|
"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",
|
"type": "ONE_OF_MANY",
|
||||||
"filters": [
|
"filters": [
|
||||||
@ -55,8 +55,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 15,
|
"versionCode": 16,
|
||||||
"versionName": "0.4.1",
|
"versionName": "0.4.2",
|
||||||
"outputFile": "app-armeabi-v7a-release.apk"
|
"outputFile": "app-armeabi-v7a-release.apk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -22,7 +22,7 @@ class SearchResultFragment : Fragment() {
|
|||||||
private val TAG = "SearchResultFragment"
|
private val TAG = "SearchResultFragment"
|
||||||
private lateinit var binding: FragmentSearchResultBinding
|
private lateinit var binding: FragmentSearchResultBinding
|
||||||
|
|
||||||
private lateinit var nextPage: String
|
private var nextPage: String? = null
|
||||||
private var query: String = ""
|
private var query: String = ""
|
||||||
|
|
||||||
private lateinit var searchAdapter: SearchAdapter
|
private lateinit var searchAdapter: SearchAdapter
|
||||||
@ -71,7 +71,7 @@ class SearchResultFragment : Fragment() {
|
|||||||
binding.searchRecycler.viewTreeObserver
|
binding.searchRecycler.viewTreeObserver
|
||||||
.addOnScrollChangedListener {
|
.addOnScrollChangedListener {
|
||||||
if (!binding.searchRecycler.canScrollVertically(1)) {
|
if (!binding.searchRecycler.canScrollVertically(1)) {
|
||||||
fetchNextSearchItems()
|
if (nextPage != null) fetchNextSearchItems()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -99,7 +99,7 @@ class SearchResultFragment : Fragment() {
|
|||||||
binding.noSearchResult.visibility = View.VISIBLE
|
binding.noSearchResult.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nextPage = response.nextpage!!
|
nextPage = response.nextpage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ class SearchResultFragment : Fragment() {
|
|||||||
RetrofitInstance.api.getSearchResultsNextPage(
|
RetrofitInstance.api.getSearchResultsNextPage(
|
||||||
query,
|
query,
|
||||||
apiSearchFilter,
|
apiSearchFilter,
|
||||||
nextPage
|
nextPage!!
|
||||||
)
|
)
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
println(e)
|
println(e)
|
||||||
|
@ -292,7 +292,7 @@ class BackgroundMode : Service() {
|
|||||||
// kill old notification
|
// kill old notification
|
||||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE)
|
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE)
|
||||||
as NotificationManager
|
as NotificationManager
|
||||||
notificationManager.cancel(1)
|
notificationManager.cancel(PLAYER_NOTIFICATION_ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onBind(p0: Intent?): IBinder? {
|
override fun onBind(p0: Intent?): IBinder? {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user