Commit a5098ce5 authored by Geoffrey Métais's avatar Geoffrey Métais

PlaybackService: catch notification failure

parent 0d0c3aab
......@@ -685,6 +685,8 @@ class PlaybackService : MediaBrowserServiceCompat(), CoroutineScope, LifecycleOw
Log.e(TAG, "Failed to display notification", e)
} catch (e: IllegalStateException) {
Log.e(TAG, "Failed to display notification", e)
} catch (e: RuntimeException) {
Log.e(TAG, "Failed to display notification", e)
} catch (e: ArrayIndexOutOfBoundsException) {
// Happens on Android 7.0 (Xperia L1 (G3312))
Log.e(TAG, "Failed to display notification", e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment