[Android] PlaybackService: catch notification failure
Geoffrey Métais
git at videolan.org
Wed Mar 27 17:48:47 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar 27 17:39:47 2019 +0100| [a5098ce5c2187fc24afa0234d5a3102471e54e3f] | committer: Geoffrey Métais
PlaybackService: catch notification failure
> https://code.videolan.org/videolan/vlc-android/commit/a5098ce5c2187fc24afa0234d5a3102471e54e3f
---
vlc-android/src/org/videolan/vlc/PlaybackService.kt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 57afad67d..9188c060e 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -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)
More information about the Android
mailing list