Fix for media been always autoplayed when opened from miniplayer

This commit is contained in:
Javi Rueda 2021-02-25 19:02:52 +01:00
parent f9a65d4277
commit f723405032

View file

@ -291,7 +291,6 @@ public class FileViewFragment extends BaseFragment implements
if (!playbackStarted) {
logPlay(currentUrl, startTimeMillis);
playbackStarted = true;
isPlaying = true;
long lastPosition = loadLastPlaybackPosition();
if (lastPosition > -1) {
@ -340,6 +339,11 @@ public class FileViewFragment extends BaseFragment implements
hideBuffering();
}
}
@Override
public void onIsPlayingChanged(boolean isPlayng) {
isPlaying = isPlayng;
}
};
return root;