-Added persisting settings when switching between players.

This commit is contained in:
John Zhen Mo
2017-10-30 20:58:46 -07:00
parent 0806344ffb
commit 052c9a9869
4 changed files with 25 additions and 12 deletions
@@ -342,7 +342,7 @@ public final class MainVideoPlayer extends Activity {
context,
PopupVideoPlayer.class,
this.getPlayQueue(),
this.simpleExoPlayer.getRepeatMode(),
this.getRepeatMode(),
this.getPlaybackSpeed(),
this.getPlaybackPitch(),
this.getPlaybackQuality()
@@ -580,7 +580,7 @@ public final class MainVideoPlayer extends Activity {
if (repeatButton == null || shuffleButton == null ||
simpleExoPlayer == null || playQueue == null) return;
setRepeatModeButton(repeatButton, simpleExoPlayer.getRepeatMode());
setRepeatModeButton(repeatButton, getRepeatMode());
setShuffleButton(shuffleButton, playQueue.isShuffled());
}