diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2020-03-29 15:23:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 15:23:17 +0200 |
commit | ec0255b7434a15264286863e21bd00c089fc55de (patch) | |
tree | b2013cdb7add14deafa7925b86833e10b54e644f /app/src/main/java/de/danoeh/antennapod | |
parent | 144d85a15d6f150f20f1d00ff11537baf646539e (diff) | |
parent | ae3b633636bd5eee9b6ac67f0d5bc60e0bdd6f17 (diff) | |
download | AntennaPod-ec0255b7434a15264286863e21bd00c089fc55de.zip |
Merge pull request #3976 from ByteHamster/fix-player-overlap
Fixed description overlapping mini player
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 2 |
1 files changed, 1 insertions, 1 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 5743cda69..a2d968031 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -140,7 +140,7 @@ public class MainActivity extends CastEnabledActivity { public void onSlide(@NonNull View view, float slideOffset) { AudioPlayerFragment audioPlayer = (AudioPlayerFragment) getSupportFragmentManager() .findFragmentByTag(AudioPlayerFragment.TAG); - float condensedSlideOffset = Math.max(0.0f, Math.min(0.1f, slideOffset - 0.5f)) / 0.1f; + float condensedSlideOffset = Math.max(0.0f, Math.min(0.2f, slideOffset - 0.2f)) / 0.2f; audioPlayer.getExternalPlayerHolder().setAlpha(1 - condensedSlideOffset); audioPlayer.getExternalPlayerHolder().setVisibility( condensedSlideOffset > 0.99f ? View.GONE : View.VISIBLE); |