[Android] Fix IllegalArgumentException
Nicolas Pomepuy
git at videolan.org
Thu Oct 17 12:09:12 CEST 2019
vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Oct 14 09:34:23 2019 +0200| [f322bb6f00bb37d92cbce4e8f113bbbdca2206fc] | committer: Geoffrey Métais
Fix IllegalArgumentException
(cherry picked from commit 53e0e04b40d54fb19ad107aa7a0126fa43438287)
> https://code.videolan.org/videolan/vlc-android/commit/f322bb6f00bb37d92cbce4e8f113bbbdca2206fc
---
vlc-android/src/org/videolan/vlc/media/MediaUtils.kt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt b/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
index 77afb1dd4..4c02cec15 100644
--- a/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
+++ b/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
@@ -446,7 +446,10 @@ object MediaUtils : CoroutineScope {
}
private fun dismiss() {
- if (this::dialog.isInitialized && dialog.isShowing) dialog.dismiss()
+ try {
+ if (this::dialog.isInitialized && dialog.isShowing) dialog.dismiss()
+ } catch (ignored: IllegalArgumentException) {
+ }
}
}
More information about the Android
mailing list