Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Hopefully fixed a bug where Android Auto would crash when connection was
unstable or inexistent trying to load album art from the server.
  • Loading branch information
Carlos Perez committed Jul 9, 2022
1 parent b0fb7ca commit d5325fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ apply plugin: 'kotlin-kapt'
android {
compileSdkVersion rootProject.ext.compileSdkVersion

// compileOptions{
// coreLibraryDesugaringEnabled true
// }
compileOptions{
coreLibraryDesugaringEnabled true
}

defaultConfig {
applicationId "tech.logica10.soniclair"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class SubsonicClient(var initialAccount: Account) {
val futureBitmap = Glide.with(App.context)
.asBitmap()
.load(albumArtUri)
.fallback(R.drawable.ic_album_art_fallback)
.error(R.drawable.ic_album_art_fallback)
.submit()
futureBitmap.get()
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/variables.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ext {
androidxCoordinatorLayoutVersion = '1.1.0'
androidxCoreVersion = '1.3.2'
androidxFragmentVersion = '1.3.0'
junitVersion = '4.13.1'
junitVersion = '4.13.2'
androidxJunitVersion = '1.1.3'
androidxEspressoCoreVersion = '3.4.0'
cordovaAndroidVersion = '10.1.1'
Expand Down

1 comment on commit d5325fc

@vercel
Copy link

@vercel vercel bot commented on d5325fc Jul 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

soniclair – ./

soniclair-git-main-thelinkin3000.vercel.app
soniclair-thelinkin3000.vercel.app
soniclair.vercel.app

Please sign in to comment.