[Android] Fix crash by adding missing views on remote player
Nicolas Pomepuy
git at videolan.org
Thu Jul 9 14:47:28 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jul 7 15:37:00 2020 +0200| [3d8fd60061a253b82cb43208441734e4259938d1] | committer: Nicolas Pomepuy
Fix crash by adding missing views on remote player
> https://code.videolan.org/videolan/vlc-android/commit/3d8fd60061a253b82cb43208441734e4259938d1
---
.../res/layout/player_remote_control.xml | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/application/vlc-android/res/layout/player_remote_control.xml b/application/vlc-android/res/layout/player_remote_control.xml
index 84d28f514..9bd1d4513 100644
--- a/application/vlc-android/res/layout/player_remote_control.xml
+++ b/application/vlc-android/res/layout/player_remote_control.xml
@@ -97,6 +97,27 @@
</RelativeLayout>
+
+ <androidx.appcompat.widget.ViewStubCompat
+ android:id="@+id/player_brightness_stub"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:layout_marginBottom="@dimen/default_margin"
+ android:layout_marginRight="@dimen/tv_overscan_horizontal"
+ android:layout="@layout/player_overlay_brightness" />
+
+ <androidx.appcompat.widget.ViewStubCompat
+ android:id="@+id/player_volume_stub"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_marginLeft="@dimen/tv_overscan_horizontal"
+ android:layout_centerVertical="true"
+ android:layout_marginBottom="@dimen/default_margin"
+ android:layout="@layout/player_overlay_volume" />
+
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:maxWidth="480dp"
More information about the Android
mailing list