Skip to content

Native Android client for Spotify, built with Jetpack Compose

Music videos: the log names the class a shrunk build lacks

kota-zo8040575bb34b
diff --git a/base/app/src/main/java/com/music/spotui/video/MusicVideoController.kt b/base/app/src/main/java/com/music/spotui/video/MusicVideoController.kt
index 656edaa5..f020ed8e 100644
--- a/base/app/src/main/java/com/music/spotui/video/MusicVideoController.kt
+++ b/base/app/src/main/java/com/music/spotui/video/MusicVideoController.kt
@@ -452,7 +452,8 @@ object MusicVideoController {
} catch (t: kotlinx.coroutines.CancellationException) {
throw t
} catch (t: Throwable) {
- Log.w(TAG, "Video resolution failed: ${t.javaClass.simpleName}")
+ // Linkage errors name the class a build lacks (a shrunk one, reported); others may carry a URL.
+ Log.w(TAG, "Video resolution failed: ${t.javaClass.simpleName}${if (t is LinkageError) ": ${t.message}" else ""}")
null
} finally {
refFile.delete()