diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-10-01 18:07:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-01 18:07:47 +0200 |
commit | 7cb0ba8156c291d34162e050045fe878f98531ee (patch) | |
tree | 0a3059b4ff73430d56d69b44d3568bd39a47132b /app/src/main/java | |
parent | e466bba01366ef5e96563d4acaea87e951a620c4 (diff) | |
download | AntennaPod-7cb0ba8156c291d34162e050045fe878f98531ee.zip |
Switch to colorBackground instead of windowBackground (#6674)
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java | 2 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java index 0916b93ad..eeca181cf 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java @@ -148,7 +148,7 @@ public class NavDrawerFragment extends Fragment implements SharedPreferences.OnS shapeBuilder.setTopRightCornerSize(cornerSize).setBottomRightCornerSize(cornerSize); } MaterialShapeDrawable drawable = new MaterialShapeDrawable(shapeBuilder.build()); - int themeColor = ThemeUtils.getColorFromAttr(root.getContext(), android.R.attr.windowBackground); + int themeColor = ThemeUtils.getColorFromAttr(root.getContext(), android.R.attr.colorBackground); drawable.setFillColor(ColorStateList.valueOf(themeColor)); root.setBackground(drawable); } diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java b/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java index 4ad9df531..beafe2604 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java @@ -191,7 +191,7 @@ public class SwipeActions extends ItemTouchHelper.SimpleCallback implements Life //add color and icon Context context = fragment.requireContext(); - int themeColor = ThemeUtils.getColorFromAttr(context, android.R.attr.windowBackground); + int themeColor = ThemeUtils.getColorFromAttr(context, android.R.attr.colorBackground); int actionColor = ThemeUtils.getColorFromAttr(context, dx > 0 ? right.getActionColor() : left.getActionColor()); RecyclerViewSwipeDecorator.Builder builder = new RecyclerViewSwipeDecorator.Builder( |