summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/dialog
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2022-12-18 18:17:03 +0100
committerGitHub <noreply@github.com>2022-12-18 18:17:03 +0100
commit3acec11322c2ef523f575db77e5d5a3de82d4d61 (patch)
tree40aefb629ee83c8762f775b28ece3f12638c2b9b /app/src/main/java/de/danoeh/antennapod/dialog
parent80a91d9da06eb5ef7c26892198e3bba7f98e8553 (diff)
parentd8d6f1c72f0aad452eb88f002dd11995bc1230f9 (diff)
downloadAntennaPod-3acec11322c2ef523f575db77e5d5a3de82d4d61.zip
Merge pull request #6237 from ByteHamster/tinted-theme
Add support for Material You tinted theme
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/dialog')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java
index 68dd60372..4d9c526c0 100644
--- a/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java
+++ b/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java
@@ -6,7 +6,6 @@ import android.content.res.TypedArray;
import android.os.Build;
import androidx.appcompat.app.AlertDialog;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
-import androidx.core.content.ContextCompat;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
@@ -31,6 +30,7 @@ import de.danoeh.antennapod.R;
import de.danoeh.antennapod.storage.preferences.UserPreferences;
import de.danoeh.antennapod.core.service.download.AntennapodHttpClient;
import de.danoeh.antennapod.model.download.ProxyConfig;
+import de.danoeh.antennapod.ui.common.ThemeUtils;
import io.reactivex.Completable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
@@ -299,7 +299,7 @@ public class ProxyDialog {
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
() -> {
- txtvMessage.setTextColor(ContextCompat.getColor(context, R.color.download_success_green));
+ txtvMessage.setTextColor(ThemeUtils.getColorFromAttr(context, R.attr.icon_green));
String message = String.format("%s %s", "{fa-check}",
context.getString(R.string.proxy_test_successful));
txtvMessage.setText(message);
@@ -307,7 +307,7 @@ public class ProxyDialog {
},
error -> {
error.printStackTrace();
- txtvMessage.setTextColor(ContextCompat.getColor(context, R.color.download_failed_red));
+ txtvMessage.setTextColor(ThemeUtils.getColorFromAttr(context, R.attr.icon_red));
String message = String.format("%s %s: %s", "{fa-close}",
context.getString(R.string.proxy_test_failed), error.getMessage());
txtvMessage.setText(message);