[Android] Fix NullPointerException when showing tips on some activities

Nicolas Pomepuy git at videolan.org
Thu Sep 23 11:01:20 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Sep 21 09:16:30 2021 +0200| [60cea570340f84f7ba5be6c8b6643b9f7a1ba018] | committer: Nicolas Pomepuy

Fix NullPointerException when showing tips on some activities

> https://code.videolan.org/videolan/vlc-android/commit/60cea570340f84f7ba5be6c8b6643b9f7a1ba018
---

 application/vlc-android/res/layout/info_activity.xml     | 5 +++++
 application/vlc-android/res/layout/playlist_activity.xml | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/application/vlc-android/res/layout/info_activity.xml b/application/vlc-android/res/layout/info_activity.xml
index 31bfc2ebf..09336213c 100644
--- a/application/vlc-android/res/layout/info_activity.xml
+++ b/application/vlc-android/res/layout/info_activity.xml
@@ -381,6 +381,11 @@
                 vlc:srcCompat="@drawable/ic_fab_play" />
 
         <include layout="@layout/audioplayercontainer" />
+        <androidx.appcompat.widget.ViewStubCompat
+                android:id="@+id/audio_player_tips"
+                android:layout="@layout/audio_player_tips"
+                android:layout_height="match_parent"
+                android:layout_width="match_parent" />
 
     </androidx.coordinatorlayout.widget.CoordinatorLayout>
 </layout>
\ No newline at end of file
diff --git a/application/vlc-android/res/layout/playlist_activity.xml b/application/vlc-android/res/layout/playlist_activity.xml
index 3588f7789..cc1f6c117 100644
--- a/application/vlc-android/res/layout/playlist_activity.xml
+++ b/application/vlc-android/res/layout/playlist_activity.xml
@@ -86,5 +86,10 @@
                 android:tint="@color/grey50" />
 
         <include layout="@layout/audioplayercontainer" />
+        <androidx.appcompat.widget.ViewStubCompat
+                android:id="@+id/audio_player_tips"
+                android:layout="@layout/audio_player_tips"
+                android:layout_height="match_parent"
+                android:layout_width="match_parent" />
     </androidx.coordinatorlayout.widget.CoordinatorLayout>
 </layout>
\ No newline at end of file



More information about the Android mailing list