From 461dcb8c1182b41e170ebb3817a585614b269d6a Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 8 Jan 2023 21:34:37 +0100 Subject: [PATCH] Make dark background of preview more consistent --- .../de/danoeh/antennapod/activity/OnlineFeedViewActivity.java | 2 ++ app/src/main/res/layout/onlinefeedview_activity.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java index 958bcec23..50aabbd01 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java @@ -65,6 +65,7 @@ import de.danoeh.antennapod.model.feed.Feed; import de.danoeh.antennapod.model.feed.FeedPreferences; import de.danoeh.antennapod.model.playback.RemoteMedia; import de.danoeh.antennapod.parser.feed.UnsupportedFeedtypeException; +import de.danoeh.antennapod.ui.common.ThemeUtils; import de.danoeh.antennapod.ui.glide.FastBlurTransformation; import io.reactivex.Maybe; import io.reactivex.Observable; @@ -128,6 +129,7 @@ public class OnlineFeedViewActivity extends AppCompatActivity { viewBinding.transparentBackground.setOnClickListener(v -> finish()); viewBinding.card.setOnClickListener(null); + viewBinding.card.setCardBackgroundColor(ThemeUtils.getColorFromAttr(this, R.attr.colorSurface)); String feedUrl = null; if (getIntent().hasExtra(ARG_FEEDURL)) { diff --git a/app/src/main/res/layout/onlinefeedview_activity.xml b/app/src/main/res/layout/onlinefeedview_activity.xml index 9e89e8a0f..c9ee91ead 100644 --- a/app/src/main/res/layout/onlinefeedview_activity.xml +++ b/app/src/main/res/layout/onlinefeedview_activity.xml @@ -13,7 +13,7 @@ android:layout_height="match_parent" android:layout_margin="32dp" android:elevation="16dp" - app:cardCornerRadius="4dp"> + app:cardCornerRadius="8dp">