minor cleanup of Log codes and comments.
This commit is contained in:
parent
221cd4b480
commit
2c5db08e25
|
@ -1333,7 +1333,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
playerStatus == PlayerStatus.PREPARING ||
|
playerStatus == PlayerStatus.PREPARING ||
|
||||||
playerStatus == PlayerStatus.SEEKING ||
|
playerStatus == PlayerStatus.SEEKING ||
|
||||||
isCasting) {
|
isCasting) {
|
||||||
Log.v(TAG, "DBG - notificationSetupTask: make service foreground");
|
Log.v(TAG, "notificationSetupTask: make service foreground");
|
||||||
startForeground(NOTIFICATION_ID, notification);
|
startForeground(NOTIFICATION_ID, notification);
|
||||||
} else if (playerStatus == PlayerStatus.PAUSED) {
|
} else if (playerStatus == PlayerStatus.PAUSED) {
|
||||||
if (treatPauseAsStop) {
|
if (treatPauseAsStop) {
|
||||||
|
@ -1848,7 +1848,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
|
|
||||||
void setIsCasting(boolean isCasting);
|
void setIsCasting(boolean isCasting);
|
||||||
|
|
||||||
void sendNotificationBroadcast(int type, int code); // TODO: unclear if the broadcast is still needed with ServiceManager
|
void sendNotificationBroadcast(int type, int code);
|
||||||
|
|
||||||
void saveCurrentPosition(boolean fromMediaPlayer, Playable playable, int position);
|
void saveCurrentPosition(boolean fromMediaPlayer, Playable playable, int position);
|
||||||
|
|
||||||
|
@ -1930,7 +1930,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
void onPlaybackStateChange(PlaybackStateCompat state) {
|
void onPlaybackStateChange(PlaybackStateCompat state) {
|
||||||
// Report the state to the MediaSession.
|
// Report the state to the MediaSession.
|
||||||
|
|
||||||
Log.v(TAG, "DBG - onPlaybackStateChange(" + state + ")");
|
Log.v(TAG, "onPlaybackStateChange(" + (state != null ? state.getState() : "null") + ")");
|
||||||
try {
|
try {
|
||||||
// Manage the started state of this service.
|
// Manage the started state of this service.
|
||||||
switch (state.getState()) {
|
switch (state.getState()) {
|
||||||
|
@ -1977,8 +1977,6 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void moveServiceToStartedState(PlaybackStateCompat state) {
|
private void moveServiceToStartedState(PlaybackStateCompat state) {
|
||||||
Log.v(TAG, "DBG - ServiceManager.moveServiceToStartedState() - serviceInStartedState:" + serviceInStartedState);
|
|
||||||
|
|
||||||
if (!serviceInStartedState) {
|
if (!serviceInStartedState) {
|
||||||
ContextCompat.startForegroundService(
|
ContextCompat.startForegroundService(
|
||||||
PlaybackService.this,
|
PlaybackService.this,
|
||||||
|
|
|
@ -781,7 +781,7 @@ public abstract class PlaybackController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initServiceNotRunning() {
|
private void initServiceNotRunning() {
|
||||||
Log.v(TAG, "DBG - initServiceNotRunning()"); // TODO: review it it's still needed
|
Log.v(TAG, "initServiceNotRunning()");
|
||||||
mediaLoader = Maybe.create((MaybeOnSubscribe<Playable>) emitter -> {
|
mediaLoader = Maybe.create((MaybeOnSubscribe<Playable>) emitter -> {
|
||||||
Playable media = getMedia();
|
Playable media = getMedia();
|
||||||
if (media != null) {
|
if (media != null) {
|
||||||
|
|
Loading…
Reference in New Issue