Merge pull request #965 from Bnyro/master

fixes
This commit is contained in:
Bnyro 2022-08-04 10:17:57 +02:00 committed by GitHub
commit 02f0bb5dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 25 deletions

View File

@ -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"
} }
], ],

View File

@ -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)

View File

@ -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? {