diff options
author | ByteHamster <info@bytehamster.com> | 2022-12-15 23:18:14 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-12-17 10:51:07 +0100 |
commit | 1d251492b08ca17852e4a8bb5b0a9638443da9b2 (patch) | |
tree | c34e5b60ceb3c94504f7d6ef26fb7dd097a4ae63 /app/src/main/java/de/danoeh/antennapod/dialog | |
parent | 690eb6af8de3f9b8bb55adfdd9f524abe9a7b022 (diff) | |
download | AntennaPod-1d251492b08ca17852e4a8bb5b0a9638443da9b2.zip |
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.java | 6 |
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); |