diff --git a/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt b/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt
index 7b5d65c5a..93a349e51 100644
--- a/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt
+++ b/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt
@@ -196,7 +196,7 @@ internal class CustomExoPlayerView(
}
private fun cancelHideControllerTask() {
- handler.removeCallbacksAndMessages(HIDE_CONTROLLER_TOKEN)
+ handler?.removeCallbacksAndMessages(HIDE_CONTROLLER_TOKEN)
}
override fun hideController() {
diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml
index e06e93f56..3d2884f8e 100644
--- a/app/src/main/res/layout/activity_about.xml
+++ b/app/src/main/res/layout/activity_about.xml
@@ -39,17 +39,10 @@
android:id="@+id/website"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -57,17 +50,10 @@
android:id="@+id/github"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -75,17 +61,10 @@
android:id="@+id/piped"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -93,17 +72,10 @@
android:id="@+id/translate"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -111,17 +83,10 @@
android:id="@+id/license"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -129,17 +94,10 @@
android:id="@+id/device"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
diff --git a/app/src/main/res/layout/activity_help.xml b/app/src/main/res/layout/activity_help.xml
index e7fea8bd7..f3b5559d2 100644
--- a/app/src/main/res/layout/activity_help.xml
+++ b/app/src/main/res/layout/activity_help.xml
@@ -29,17 +29,10 @@
android:id="@+id/faq"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -47,17 +40,10 @@
android:id="@+id/matrix"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -65,17 +51,10 @@
android:id="@+id/telegram"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -83,17 +62,10 @@
android:id="@+id/discord"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -101,17 +73,10 @@
android:id="@+id/reddit"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
@@ -119,17 +84,10 @@
android:id="@+id/twitter"
style="@style/AboutCard">
-
-
-
-
-
-
-
+
diff --git a/app/src/main/res/layout/bottom_sheet_item.xml b/app/src/main/res/layout/bottom_sheet_item.xml
index dbcd835d2..1a8584f8d 100644
--- a/app/src/main/res/layout/bottom_sheet_item.xml
+++ b/app/src/main/res/layout/bottom_sheet_item.xml
@@ -6,6 +6,7 @@
android:background="?attr/selectableItemBackground"
android:orientation="horizontal"
android:paddingHorizontal="30dp"
+ android:gravity="center_vertical"
android:paddingVertical="12dp">
\ No newline at end of file
diff --git a/app/src/main/res/layout/comments_row.xml b/app/src/main/res/layout/comments_row.xml
index 1c619b9f7..fb5427e30 100644
--- a/app/src/main/res/layout/comments_row.xml
+++ b/app/src/main/res/layout/comments_row.xml
@@ -45,10 +45,11 @@
@@ -80,6 +81,7 @@
android:layout_marginBottom="8dp"
android:textSize="15sp"
android:autoLink="web"
+ android:textAlignment="viewStart"
tools:text="Comment Text" />
+ android:orientation="vertical">
@@ -82,6 +84,7 @@
android:text="@string/playlists"
android:padding="8dp"
android:textSize="18sp"
+ android:textAlignment="viewStart"
android:textStyle="bold" />
+ android:nestedScrollingEnabled="false" />
@@ -147,7 +150,7 @@
android:id="@+id/bookmarks_recView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:nestedScrollingEnabled="false"/>
+ android:nestedScrollingEnabled="false" />
diff --git a/app/src/main/res/layout/fragment_player.xml b/app/src/main/res/layout/fragment_player.xml
index 73c3f7e2f..15c0083ad 100644
--- a/app/src/main/res/layout/fragment_player.xml
+++ b/app/src/main/res/layout/fragment_player.xml
@@ -210,26 +210,25 @@
-
-
-
-
-
-
-
+ android:paddingHorizontal="8dp"
+ android:text="@string/comments"
+ android:textAlignment="viewStart"
+ app:drawableEndCompat="@drawable/ic_arrow_up_down" />
diff --git a/app/src/main/res/layout/fragment_subscriptions.xml b/app/src/main/res/layout/fragment_subscriptions.xml
index 94ed78fbd..8ecf17855 100644
--- a/app/src/main/res/layout/fragment_subscriptions.xml
+++ b/app/src/main/res/layout/fragment_subscriptions.xml
@@ -69,27 +69,14 @@
android:layout_marginBottom="12dp"
app:cardCornerRadius="18dp">
-
-
-
-
-
-
-
+ android:layout_margin="8dp"
+ android:paddingHorizontal="8dp"
+ android:text="@string/subscriptions"
+ android:textAlignment="viewStart"
+ app:drawableEndCompat="@drawable/ic_arrow_up_down" />
diff --git a/app/src/main/res/layout/searchhistory_row.xml b/app/src/main/res/layout/searchhistory_row.xml
index e8cb42e26..f6fbee759 100644
--- a/app/src/main/res/layout/searchhistory_row.xml
+++ b/app/src/main/res/layout/searchhistory_row.xml
@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ xmlns:tools="http://schemas.android.com/tools"
android:background="?android:attr/selectableItemBackground"
android:paddingHorizontal="16dp"
android:paddingVertical="8dp">
@@ -22,10 +23,12 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"
+ android:textAlignment="viewStart"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/delete_history"
app:layout_constraintStart_toEndOf="@id/history_icon"
- app:layout_constraintTop_toTopOf="parent" />
+ app:layout_constraintTop_toTopOf="parent"
+ tools:text="History item"/>
@@ -22,10 +23,12 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"
+ android:textAlignment="viewStart"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/arrow"
app:layout_constraintStart_toEndOf="@id/search_icon"
- app:layout_constraintTop_toTopOf="parent" />
+ app:layout_constraintTop_toTopOf="parent"
+ tools:text="Suggestion item"/>
+ app:layout_constraintTop_toBottomOf="@id/video_info"
+ android:layout_gravity="start|center_vertical">
diff --git a/app/src/main/res/values/style.xml b/app/src/main/res/values/style.xml
index 5518e107e..6d2f47d50 100644
--- a/app/src/main/res/values/style.xml
+++ b/app/src/main/res/values/style.xml
@@ -17,8 +17,8 @@
-
-
-
-