Merge pull request #138 from ultrasonic/downgrade-api-to-22
Downgrade api to 22
This commit is contained in:
commit
cd54632339
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
org.gradle.parallel=true
|
||||
org.gradle.configureondemand=true
|
||||
org.gradle.caching=true
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue