fix (hopefully skipping episode)

problem was: apparently stopping was taking over any load command that immediately followed it
This commit is contained in:
Domingos Lopes 2016-04-27 23:57:53 -04:00
parent 0fecbcb87b
commit 7e584d95f8
1 changed files with 7 additions and 7 deletions

View File

@ -546,13 +546,13 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer {
} catch (TransientNetworkDisconnectionException | NoConnectionException e) { } catch (TransientNetworkDisconnectionException | NoConnectionException e) {
Log.e(TAG, "Could not determine if media is playing", e); Log.e(TAG, "Could not determine if media is playing", e);
} }
if (wasSkipped) { // if (wasSkipped) {
try { // try {
castMgr.stop(); // castMgr.stop();
} catch (CastException | TransientNetworkDisconnectionException | NoConnectionException e) { // } catch (CastException | TransientNetworkDisconnectionException | NoConnectionException e) {
Log.e(TAG, "Could not stop remote playback when skipping", e); // Log.e(TAG, "Could not stop remote playback when skipping", e);
} // }
} // }
if (playerStatus != PlayerStatus.INDETERMINATE) { if (playerStatus != PlayerStatus.INDETERMINATE) {
setPlayerStatus(PlayerStatus.INDETERMINATE, media); setPlayerStatus(PlayerStatus.INDETERMINATE, media);
} }