From daa93665926bac5302595cf354e1218a0e394347 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 3 May 2020 19:20:32 +0200 Subject: [PATCH] Fixed pager tab background --- .../java/de/danoeh/antennapod/fragment/ItemPagerFragment.java | 1 + core/src/main/res/values/styles.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java index 0c7eb23d2..c198ce258 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java @@ -86,6 +86,7 @@ public class ItemPagerFragment extends Fragment { pager.setId(newId); pager.setAdapter(new ItemPagerAdapter(this)); pager.setCurrentItem(feedItemPos, false); + pager.setOffscreenPageLimit(1); loadItem(feedItems[feedItemPos]); pager.registerOnPageChangeCallback(new ViewPager2.OnPageChangeCallback() { @Override diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 2b7be1713..f9157e8e4 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -13,6 +13,7 @@ @style/ProgressBarLight @color/accent_light @color/background_light + @color/background_light @style/Widget.AntennaPod.ActionBar.Light @color/master_switch_background_light @color/highlight_light @@ -84,6 +85,7 @@ @color/accent_dark @color/background_darktheme @color/background_darktheme + @color/background_darktheme @style/Widget.AntennaPod.ActionBar.Dark @color/white @style/ProgressBarDark @@ -157,6 +159,7 @@ @color/white @color/white @color/black + @color/black @color/black @color/black