From e70c153cd3290b9fa143dd9ffcd00d25359025a0 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Sat, 24 Apr 2021 00:31:02 +0200 Subject: [PATCH] Fix black drawables in night themes in share dialog (RouterActivity) --- app/src/main/java/org/schabi/newpipe/RouterActivity.java | 2 +- app/src/main/res/drawable-night/ic_headset.xml | 2 +- app/src/main/res/drawable-night/ic_info_outline.xml | 2 +- app/src/main/res/drawable-night/ic_picture_in_picture.xml | 2 +- app/src/main/res/drawable-night/ic_play_arrow.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/RouterActivity.java b/app/src/main/java/org/schabi/newpipe/RouterActivity.java index 13efcb58d..3b3ca6083 100644 --- a/app/src/main/java/org/schabi/newpipe/RouterActivity.java +++ b/app/src/main/java/org/schabi/newpipe/RouterActivity.java @@ -372,7 +372,7 @@ public class RouterActivity extends AppCompatActivity { final RadioButton radioButton = ListRadioIconItemBinding.inflate(inflater).getRoot(); radioButton.setText(item.description); TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds(radioButton, - AppCompatResources.getDrawable(getApplicationContext(), item.icon), + AppCompatResources.getDrawable(themeWrapperContext, item.icon), null, null, null); radioButton.setChecked(false); radioButton.setId(id++); diff --git a/app/src/main/res/drawable-night/ic_headset.xml b/app/src/main/res/drawable-night/ic_headset.xml index 3ca2936b8..f23764766 100644 --- a/app/src/main/res/drawable-night/ic_headset.xml +++ b/app/src/main/res/drawable-night/ic_headset.xml @@ -5,6 +5,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/drawable-night/ic_info_outline.xml b/app/src/main/res/drawable-night/ic_info_outline.xml index 2465f7808..d772001df 100644 --- a/app/src/main/res/drawable-night/ic_info_outline.xml +++ b/app/src/main/res/drawable-night/ic_info_outline.xml @@ -5,6 +5,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/drawable-night/ic_picture_in_picture.xml b/app/src/main/res/drawable-night/ic_picture_in_picture.xml index f6b3205cc..1b01f3233 100644 --- a/app/src/main/res/drawable-night/ic_picture_in_picture.xml +++ b/app/src/main/res/drawable-night/ic_picture_in_picture.xml @@ -5,6 +5,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/drawable-night/ic_play_arrow.xml b/app/src/main/res/drawable-night/ic_play_arrow.xml index 098b71d1f..95cace1c8 100644 --- a/app/src/main/res/drawable-night/ic_play_arrow.xml +++ b/app/src/main/res/drawable-night/ic_play_arrow.xml @@ -5,6 +5,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0">