Skip to content

Commit

Permalink
Log album art exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
MM2-0 committed Aug 30, 2022
1 parent 20255b2 commit 5c8df75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions music/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ dependencies {
implementation(project(":ktx"))
implementation(project(":preferences"))
implementation(project(":notifications"))
implementation(project(":crashreporter"))

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import androidx.core.graphics.drawable.toBitmap
import coil.imageLoader
import coil.request.ImageRequest
import coil.size.Scale
import de.mm20.launcher2.crashreporter.CrashReporter
import de.mm20.launcher2.notifications.NotificationRepository
import de.mm20.launcher2.preferences.LauncherDataStore
import kotlinx.coroutines.*
Expand Down Expand Up @@ -303,7 +304,9 @@ internal class MusicRepositoryImpl(
.build()
context.imageLoader.execute(request).drawable?.toBitmap()
} catch (e: IOException) {
CrashReporter.logException(e)
} catch (e: SecurityException) {
CrashReporter.logException(e)
}
return null
}
Expand Down

0 comments on commit 5c8df75

Please sign in to comment.