Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

Hopefully fix video player

fattire24b6b3497d3b
diff --git a/build.gradle b/build.gradle
index 933a98f..bb76407 100644
--- a/build.gradle
+++ b/build.gradle
@@ -144,6 +144,7 @@ configurations {
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
+ implementation "androidx.coordinatorlayout:coordinatorlayout:1.1.0"
implementation 'androidx.preference:preference:1.1.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.annotation:annotation:1.1.0'
diff --git a/src/main/res/layout/activity_video_player.xml b/src/main/res/layout/activity_video_player.xml
index f4d0232..789436e 100644
--- a/src/main/res/layout/activity_video_player.xml
+++ b/src/main/res/layout/activity_video_player.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayoutwidget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
@@ -9,7 +9,8 @@
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:theme="@style/AppTheme.AppBarOverlay">
+ android:theme="@style/AppTheme.AppBarOverlay"
+ app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
@@ -20,6 +21,8 @@
</com.google.android.material.appbar.AppBarLayout>
- <include layout="@layout/content_video_player" />
+ <include
+ android:id="@+id/include"
+ layout="@layout/content_video_player" />
-</androidx.constraintlayout.widget.ConstraintLayoutwidget.CoordinatorLayout>
\ No newline at end of file
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file
diff --git a/src/main/res/layout/content_video_player.xml b/src/main/res/layout/content_video_player.xml
index 8c7fdcb..aa49ce1 100644
--- a/src/main/res/layout/content_video_player.xml
+++ b/src/main/res/layout/content_video_player.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
@@ -8,7 +8,7 @@
tools:context=".ui.VideoPlayerActivity"
tools:showIn="@layout/activity_video_player">
- <com.halilibo.bettervideoplayer.BetterVideoPlayer xmlns:android="http://schemas.android.com/apk/res/android"
+ <com.halilibo.bettervideoplayer.BetterVideoPlayer
android:id="@+id/player"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -18,4 +18,4 @@
app:layout_constraintTop_toTopOf="parent" />
-</androidx.constraintlayout.ConstraintLayout>
\ No newline at end of file
+</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file