mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-01-30 00:44:53 +01:00
Set target api to 28.
This commit is contained in:
parent
0762b7bcf8
commit
4d0955932a
@ -1,7 +1,7 @@
|
||||
ext.versions = [
|
||||
minSdk : 14,
|
||||
targetSdk : 22,
|
||||
compileSdk : 27,
|
||||
compileSdk : 28,
|
||||
gradle : '4.5.1',
|
||||
|
||||
androidTools : "3.1.3",
|
||||
|
@ -23,6 +23,7 @@ class AvatarRequestHandler(
|
||||
|
||||
override fun load(request: Request, networkPolicy: Int): Result {
|
||||
val username = request.uri.getQueryParameter(QUERY_USERNAME)
|
||||
?: throw IllegalArgumentException("Nullable username")
|
||||
|
||||
val response = apiClient.getAvatar(username)
|
||||
if (response.hasError()) {
|
||||
|
@ -20,7 +20,7 @@ class CoverArtRequestHandler(private val apiClient: SubsonicAPIClient) : Request
|
||||
}
|
||||
|
||||
override fun load(request: Request, networkPolicy: Int): Result {
|
||||
val id = request.uri.getQueryParameter(QUERY_ID)
|
||||
val id = request.uri.getQueryParameter(QUERY_ID) ?: throw IllegalArgumentException("Nullable id")
|
||||
|
||||
val response = apiClient.getCoverArt(id)
|
||||
if (response.hasError()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user