From a46b1dcd6411e2afb811c91f2b077e7aa8abe1bc Mon Sep 17 00:00:00 2001 From: Zsombor Gegesy Date: Fri, 23 Aug 2024 15:38:10 +0200 Subject: [PATCH] Enalbe nonTransitiveRClasses to improve build --- .../ChromecastControllerFragment.java | 5 --- app/src/main/res/layout/video_description.xml | 41 ++++++++++--------- gradle.properties | 2 +- 3 files changed, 23 insertions(+), 25 deletions(-) diff --git a/app/src/extra/java/free/rm/skytube/gui/fragments/ChromecastControllerFragment.java b/app/src/extra/java/free/rm/skytube/gui/fragments/ChromecastControllerFragment.java index 3546dbd44b..dd1a98f4c4 100644 --- a/app/src/extra/java/free/rm/skytube/gui/fragments/ChromecastControllerFragment.java +++ b/app/src/extra/java/free/rm/skytube/gui/fragments/ChromecastControllerFragment.java @@ -50,11 +50,6 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c stopButton = fragmentBinding.stopButton; bufferingSpinner = fragmentBinding.bufferingSpinner; - // Set the background color of the video description layout since by default it doesn't match the background color of the Chromecast controller - TypedValue typedValue = new TypedValue(); - getContext().getTheme().resolveAttribute(R.attr.colorPrimary, typedValue, true); - videoDescriptionBinding.videoDescLinearlayout.setBackgroundResource(typedValue.resourceId); - Linker.configure(videoDescriptionBinding.videoDescDescription, null); fragmentBinding.chromecastPlaybackProgressBar.setOnSeekBarChangeListener(this); diff --git a/app/src/main/res/layout/video_description.xml b/app/src/main/res/layout/video_description.xml index c8c7c03d5a..ccacf30504 100644 --- a/app/src/main/res/layout/video_description.xml +++ b/app/src/main/res/layout/video_description.xml @@ -4,20 +4,23 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/video_player_drawer_background"> - + + + android:textColor="@color/video_player_drawer_text" /> + android:text="Channel Name" /> + android:text="Unsubscribe" /> @@ -78,20 +81,20 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" - android:paddingLeft="30dp" - android:paddingStart="30dp"> + android:paddingStart="30dp" + android:paddingLeft="30dp"> + android:text="17,000,000 views" /> + android:layout_below="@id/video_desc_views" /> + android:visibility="gone" /> @@ -128,17 +131,17 @@ + android:paddingTop="10dp" + android:text="7 days ago" /> + android:autoLink="web" + android:paddingTop="10dp" + android:text="Video description here." /> \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index fefe24146b..4955172cd6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,6 +19,6 @@ org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF android.useAndroidX=true android.enableJetifier=true -android.nonTransitiveRClass=false +android.nonTransitiveRClass=true android.nonFinalResIds=false