From 805158ad14dd873ea3e1a5259a8df89a05d81109 Mon Sep 17 00:00:00 2001
From: Lag <>
Date: Tue, 7 Mar 2023 17:29:25 +0100
Subject: [PATCH] Better quality selection
---
.../res/layout/player_prioritize_item.xml | 5 +++--
.../layout/player_quality_profile_item.xml | 2 +-
.../layout/player_select_source_and_subs.xml | 19 ++++++++++---------
.../layout/player_select_source_priority.xml | 16 ++++++++--------
app/src/main/res/values/strings.xml | 3 +++
5 files changed, 25 insertions(+), 20 deletions(-)
diff --git a/app/src/main/res/layout/player_prioritize_item.xml b/app/src/main/res/layout/player_prioritize_item.xml
index 513d413f..b78863f8 100644
--- a/app/src/main/res/layout/player_prioritize_item.xml
+++ b/app/src/main/res/layout/player_prioritize_item.xml
@@ -2,6 +2,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:paddingHorizontal="15dp"
android:gravity="center_vertical"
android:orientation="horizontal">
@@ -11,8 +12,6 @@
android:layout_width="wrap_content"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/subtract_button"
- android:paddingStart="25dp"
- android:paddingEnd="25dp"
tools:text="hello" />
@@ -41,6 +41,7 @@
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
+ android:background="?attr/selectableItemBackgroundBorderless"
android:padding="10dp"
android:src="@drawable/ic_baseline_add_24" />
diff --git a/app/src/main/res/layout/player_quality_profile_item.xml b/app/src/main/res/layout/player_quality_profile_item.xml
index faff71ca..ad2a29a0 100644
--- a/app/src/main/res/layout/player_quality_profile_item.xml
+++ b/app/src/main/res/layout/player_quality_profile_item.xml
@@ -25,7 +25,7 @@
android:layout_height="wrap_content"
android:textSize="16sp"
android:padding="10dp"
- tools:text="Mobile data" />
+ tools:text="@string/mobile_data" />
+ android:orientation="horizontal">
+ app:drawableEndCompat="@drawable/ic_outline_settings_24"
+ tools:text="@string/profile_number" />
-
+ android:contentDescription="@string/help" />
@@ -146,7 +145,8 @@
android:textColor="?attr/textColor"
android:textSize="20sp"
android:textStyle="bold"
- tools:text="Profile 1" />
+ tools:text="@string/profile_number"
+ android:autofillHints="username" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 4a094e10..989ee818 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -668,6 +668,9 @@
Here you can change how the sources are ordered. If a video has a higher priority it will appear higher in the source selection.
The sum of the source priority and the quality priority is the video priority.
+ \n\nSource A: 3
+ \nQuality B: 7
+ \nWill have a combined video priority of 10.
\n\nNOTE: If the sum is 10 or more the player will automatically skip loading when that link is loaded!