From d2d7dbfea31ee6524afa6a108ffdeb1c83f56403 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 19 Jul 2020 09:49:19 +0200 Subject: [PATCH] Rotation fixes --- .../java/de/danoeh/antennapod/fragment/FeedInfoFragment.java | 4 ++++ app/src/main/res/{layout-w800dp => layout-sw720dp}/main.xml | 0 app/src/main/res/layout/feedinfo.xml | 2 ++ app/src/main/res/layout/feeditemlist_header.xml | 1 + 4 files changed, 7 insertions(+) rename app/src/main/res/{layout-w800dp => layout-sw720dp}/main.xml (100%) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java index a268b8b58..071fa9f54 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java @@ -69,6 +69,7 @@ public class FeedInfoFragment extends Fragment { private TextView txtvUrl; private TextView txtvAuthorHeader; private ImageView imgvBackground; + private View infoContainer; private View header; private Menu optionsMenu; private ToolbarIconTintManager iconTintManager; @@ -124,6 +125,7 @@ public class FeedInfoFragment extends Fragment { txtvAuthorHeader = root.findViewById(R.id.txtvAuthor); imgvBackground = root.findViewById(R.id.imgvBackground); header = root.findViewById(R.id.headerContainer); + infoContainer = root.findViewById(R.id.infoContainer); root.findViewById(R.id.butShowInfo).setVisibility(View.INVISIBLE); root.findViewById(R.id.butShowSettings).setVisibility(View.INVISIBLE); // https://github.com/bumptech/glide/issues/529 @@ -164,6 +166,8 @@ public class FeedInfoFragment extends Fragment { super.onConfigurationChanged(newConfig); int horizontalSpacing = (int) getResources().getDimension(R.dimen.additional_horizontal_spacing); header.setPadding(horizontalSpacing, header.getPaddingTop(), horizontalSpacing, header.getPaddingBottom()); + infoContainer.setPadding(horizontalSpacing, infoContainer.getPaddingTop(), + horizontalSpacing, infoContainer.getPaddingBottom()); } private void showFeed() { diff --git a/app/src/main/res/layout-w800dp/main.xml b/app/src/main/res/layout-sw720dp/main.xml similarity index 100% rename from app/src/main/res/layout-w800dp/main.xml rename to app/src/main/res/layout-sw720dp/main.xml diff --git a/app/src/main/res/layout/feedinfo.xml b/app/src/main/res/layout/feedinfo.xml index fa6aac251..dd349c15c 100644 --- a/app/src/main/res/layout/feedinfo.xml +++ b/app/src/main/res/layout/feedinfo.xml @@ -62,6 +62,8 @@