Log album art exceptions
This commit is contained in:
parent
20255b281d
commit
5c8df75ad3
@ -44,5 +44,6 @@ dependencies {
|
|||||||
implementation(project(":ktx"))
|
implementation(project(":ktx"))
|
||||||
implementation(project(":preferences"))
|
implementation(project(":preferences"))
|
||||||
implementation(project(":notifications"))
|
implementation(project(":notifications"))
|
||||||
|
implementation(project(":crashreporter"))
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -22,6 +22,7 @@ import androidx.core.graphics.drawable.toBitmap
|
|||||||
import coil.imageLoader
|
import coil.imageLoader
|
||||||
import coil.request.ImageRequest
|
import coil.request.ImageRequest
|
||||||
import coil.size.Scale
|
import coil.size.Scale
|
||||||
|
import de.mm20.launcher2.crashreporter.CrashReporter
|
||||||
import de.mm20.launcher2.notifications.NotificationRepository
|
import de.mm20.launcher2.notifications.NotificationRepository
|
||||||
import de.mm20.launcher2.preferences.LauncherDataStore
|
import de.mm20.launcher2.preferences.LauncherDataStore
|
||||||
import kotlinx.coroutines.*
|
import kotlinx.coroutines.*
|
||||||
@ -303,7 +304,9 @@ internal class MusicRepositoryImpl(
|
|||||||
.build()
|
.build()
|
||||||
context.imageLoader.execute(request).drawable?.toBitmap()
|
context.imageLoader.execute(request).drawable?.toBitmap()
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
|
CrashReporter.logException(e)
|
||||||
} catch (e: SecurityException) {
|
} catch (e: SecurityException) {
|
||||||
|
CrashReporter.logException(e)
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user