diff --git a/app/src/main/java/de/nicidienase/chaosflix/PlaybackHelper.java b/app/src/main/java/de/nicidienase/chaosflix/PlaybackHelper.java index af98e5f8..e59b8733 100644 --- a/app/src/main/java/de/nicidienase/chaosflix/PlaybackHelper.java +++ b/app/src/main/java/de/nicidienase/chaosflix/PlaybackHelper.java @@ -239,8 +239,8 @@ public class PlaybackHelper extends PlaybackControlGlue { if(getCurrentSpeedId() == speed){ return; } - setFadingEnabled(true); - fragment.setFadingEnabled(true); +// setFadingEnabled(true); +// fragment.setFadingEnabled(true); if(mTransportControls != null){ mTransportControls.play(); } else { @@ -250,8 +250,8 @@ public class PlaybackHelper extends PlaybackControlGlue { @Override protected void pausePlayback() { - setFadingEnabled(false); - fragment.setFadingEnabled(false); +// setFadingEnabled(false); +// fragment.setFadingEnabled(false); if(mTransportControls != null){ mTransportControls.pause(); } else { diff --git a/app/src/main/java/de/nicidienase/chaosflix/fragments/OverlayFragment.java b/app/src/main/java/de/nicidienase/chaosflix/fragments/OverlayFragment.java index 68b56cff..b883a421 100644 --- a/app/src/main/java/de/nicidienase/chaosflix/fragments/OverlayFragment.java +++ b/app/src/main/java/de/nicidienase/chaosflix/fragments/OverlayFragment.java @@ -126,7 +126,6 @@ public class OverlayFragment extends PlaybackFragment{ setBackgroundType(PlaybackFragment.BG_LIGHT); setFadingEnabled(false); - mHelper.setFadingEnabled(true); } @Override @@ -158,6 +157,7 @@ public class OverlayFragment extends PlaybackFragment{ Log.d(TAG,"Callback not set or not event/stream"); } requestAudioFocus(); + play(); } private Row getRelatedItems() { @@ -298,11 +298,13 @@ public class OverlayFragment extends PlaybackFragment{ private void play() { setPlaybackState(PlaybackState.STATE_PLAYING); + setFadingEnabled(true); mCallback.play(); } private void pause() { setPlaybackState(PlaybackState.STATE_PAUSED); + setFadingEnabled(false); mCallback.pause(); }