From d196f8b4b2d2aeb1a8df803c334d8650b2265fa0 Mon Sep 17 00:00:00 2001
From: Avently <7953703+avently@users.noreply.github.com>
Date: Thu, 16 Jul 2020 01:15:24 +0300
Subject: [PATCH] New icons
---
.../fragments/detail/VideoDetailFragment.java | 2 +-
.../main/res/drawable/ic_list_black_24dp.xml | 11 ++++----
.../main/res/drawable/ic_list_white_24dp.xml | 12 +++++---
.../main/res/drawable/ic_next_white_24dp.xml | 10 +++++++
.../res/drawable/ic_previous_white_24dp.xml | 10 +++++++
.../activity_player_queue_control.xml | 12 ++++----
.../activity_main_player.xml | 28 +++++++++----------
.../main/res/layout/activity_main_player.xml | 18 ++++++------
.../layout/activity_player_queue_control.xml | 8 +++---
9 files changed, 66 insertions(+), 45 deletions(-)
create mode 100644 app/src/main/res/drawable/ic_next_white_24dp.xml
create mode 100644 app/src/main/res/drawable/ic_previous_white_24dp.xml
diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
index 9cc4357d7..28e2f688e 100644
--- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
+++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
@@ -1511,7 +1511,7 @@ public class VideoDetailFragment
getChildFragmentManager().beginTransaction()
.replace(R.id.relatedStreamsLayout,
RelatedVideosFragment.getInstance(info))
- .commitNow();
+ .commitAllowingStateLoss();
relatedStreamsLayout.setVisibility(
player != null && player.isFullscreen() ? View.GONE : View.VISIBLE);
}
diff --git a/app/src/main/res/drawable/ic_list_black_24dp.xml b/app/src/main/res/drawable/ic_list_black_24dp.xml
index 4c2fb8834..7020c1c56 100644
--- a/app/src/main/res/drawable/ic_list_black_24dp.xml
+++ b/app/src/main/res/drawable/ic_list_black_24dp.xml
@@ -1,9 +1,8 @@
-
+ android:viewportWidth="18"
+ android:viewportHeight="10">
+
diff --git a/app/src/main/res/drawable/ic_list_white_24dp.xml b/app/src/main/res/drawable/ic_list_white_24dp.xml
index f47037629..c9ae06017 100644
--- a/app/src/main/res/drawable/ic_list_white_24dp.xml
+++ b/app/src/main/res/drawable/ic_list_white_24dp.xml
@@ -1,5 +1,9 @@
-
-
+
+
diff --git a/app/src/main/res/drawable/ic_next_white_24dp.xml b/app/src/main/res/drawable/ic_next_white_24dp.xml
new file mode 100644
index 000000000..603880c2b
--- /dev/null
+++ b/app/src/main/res/drawable/ic_next_white_24dp.xml
@@ -0,0 +1,10 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_previous_white_24dp.xml b/app/src/main/res/drawable/ic_previous_white_24dp.xml
new file mode 100644
index 000000000..14279ecb2
--- /dev/null
+++ b/app/src/main/res/drawable/ic_previous_white_24dp.xml
@@ -0,0 +1,10 @@
+
+
+
+
diff --git a/app/src/main/res/layout-land/activity_player_queue_control.xml b/app/src/main/res/layout-land/activity_player_queue_control.xml
index 84a29e0c8..a7872a83a 100644
--- a/app/src/main/res/layout-land/activity_player_queue_control.xml
+++ b/app/src/main/res/layout-land/activity_player_queue_control.xml
@@ -185,7 +185,7 @@
android:orientation="horizontal"
tools:ignore="RtlHardcoded">
-
@@ -238,7 +238,7 @@
app:srcCompat="@drawable/ic_shuffle_white_24dp"
tools:ignore="ContentDescription"/>
-
diff --git a/app/src/main/res/layout-large-land/activity_main_player.xml b/app/src/main/res/layout-large-land/activity_main_player.xml
index 26a2ebc8b..92288933b 100644
--- a/app/src/main/res/layout-large-land/activity_main_player.xml
+++ b/app/src/main/res/layout-large-land/activity_main_player.xml
@@ -217,7 +217,6 @@
+ android:visibility="gone"
+ tools:visibility="visible"/>