[Android] Fix IllegalArgumentException

Nicolas Pomepuy git at videolan.org
Fri Jun 12 14:09:06 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jun 12 06:56:52 2020 +0200| [9897d71d6ed005a6d27b887484b29ed7a3618e14] | committer: Nicolas Pomepuy

Fix IllegalArgumentException

> https://code.videolan.org/videolan/vlc-android/commit/9897d71d6ed005a6d27b887484b29ed7a3618e14
---

 application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt b/application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
index e155668e8..a81c478d5 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
@@ -118,7 +118,7 @@ object MediaUtils {
                     if (it is AudioPlayerContainerActivity) {
                         Snackbar.make(it.appBarLayout, text, Snackbar.LENGTH_LONG).show()
                     } else
-                    Snackbar.make(it.findViewById(R.id.appbar), text, Snackbar.LENGTH_LONG).show()
+                    Snackbar.make(it.findViewById(android.R.id.content), text, Snackbar.LENGTH_LONG).show()
                 }
             }
         }



More information about the Android mailing list