From 192d71c7abeb6b594857bf947a395c0528c06a6b Mon Sep 17 00:00:00 2001 From: Manjeet Yadav <92643506+mjydv4548@users.noreply.github.com> Date: Wed, 21 Jun 2023 03:01:55 +0530 Subject: Fix mini player in landscape mode missing the Play button (#6521) --- app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main') diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java index a55bfade3..d8e21e8c9 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -332,6 +332,10 @@ public class MainActivity extends CastEnabledActivity { params.setMargins(navigationBarInsets.left, 0, navigationBarInsets.right, navigationBarInsets.bottom + (visible ? externalPlayerHeight : 0)); mainView.setLayoutParams(params); + FragmentContainerView playerView = findViewById(R.id.playerFragment); + ViewGroup.MarginLayoutParams playerParams = (ViewGroup.MarginLayoutParams) playerView.getLayoutParams(); + playerParams.setMargins(navigationBarInsets.left, 0, navigationBarInsets.right, 0); + playerView.setLayoutParams(playerParams); findViewById(R.id.audioplayerFragment).setVisibility(visible ? View.VISIBLE : View.GONE); } -- cgit v1.2.3