summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManjeet Yadav <92643506+mjydv4548@users.noreply.github.com>2023-06-21 03:01:55 +0530
committerGitHub <noreply@github.com>2023-06-20 23:31:55 +0200
commit192d71c7abeb6b594857bf947a395c0528c06a6b (patch)
tree4c359f097cf923cbdd7d9f22bdc489e856d8c2f2
parentde3f6aab918007637ee94ff1f807153afd9ec681 (diff)
downloadAntennaPod-192d71c7abeb6b594857bf947a395c0528c06a6b.zip
Fix mini player in landscape mode missing the Play button (#6521)
-rw-r--r--app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java4
1 files changed, 4 insertions, 0 deletions
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);
}