diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 4 |
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); } |