[Android] PlaybackService: catch notification failure

Geoffrey Métais git at videolan.org
Thu Mar 28 14:29:05 CET 2019


vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar 27 17:39:47 2019 +0100| [38063a41e1337ed1eb3322d9a253457209462ad3] | committer: Geoffrey Métais

PlaybackService: catch notification failure

> https://code.videolan.org/videolan/vlc-android/commit/38063a41e1337ed1eb3322d9a253457209462ad3
---

 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