Merge pull request #138 from ultrasonic/downgrade-api-to-22

Downgrade api to 22
This commit is contained in:
Yahor Berdnikau 2018-01-20 13:05:14 +01:00 committed by GitHub
commit cd54632339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/android:api-26-alpha
- image: circleci/android:api-27-alpha
working_directory: ~/ultrasonic
envoronment:
JVM_OPTS: -Xmx3200m

View File

@ -1,6 +1,6 @@
ext.versions = [
minSdk : 14,
targetSdk : 23,
targetSdk : 22,
compileSdk : 27,
gradle : '4.4.1',
@ -12,7 +12,7 @@ ext.versions = [
jacocoAndroid : "0.1.2",
buildVersioning : "1.6.0",
androidSupport : "23.4.0",
androidSupport : "22.2.1",
kotlin : "1.2.10",

3
gradle.properties Normal file
View File

@ -0,0 +1,3 @@
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true

View File

@ -21,7 +21,7 @@ import org.moire.ultrasonic.service.SubsonicRESTException
fun SubsonicRESTException.getLocalizedErrorMessage(context: Context): String =
when (error) {
is Generic -> {
val message = (error as Generic).message
val message = error.message
val errorMessage = if (message == "") {
context.getString(R.string.api_subsonic_generic_no_message)
} else {