1
0
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:
Yahor Berdnikau 2018-09-30 10:31:17 +02:00
parent 0762b7bcf8
commit 4d0955932a
3 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext.versions = [
minSdk : 14,
targetSdk : 22,
compileSdk : 27,
compileSdk : 28,
gradle : '4.5.1',
androidTools : "3.1.3",

View File

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

View File

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