diff options
author | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-05-01 10:21:57 -0400 |
---|---|---|
committer | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-05-01 10:21:57 -0400 |
commit | 96c3594806b96564cd4af860f3706266d43013b4 (patch) | |
tree | 64c845268bd4c4540a5010aa8d26c026b27e08f2 /core | |
parent | 0f32e2953ce2aed89e676d815fa9cb2494a31e1a (diff) | |
download | AntennaPod-96c3594806b96564cd4af860f3706266d43013b4.zip |
change name reloadUI -> onMediaChanged
Diffstat (limited to 'core')
4 files changed, 6 insertions, 6 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java index acd0ccfdb..8bacac1ef 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java @@ -158,7 +158,7 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer { setPlayerStatus(PlayerStatus.INITIALIZING, media); try { media.loadMetadata(); - callback.reloadUI(true); + callback.onMediaChanged(false); if (stream) { mediaPlayer.setDataSource(media.getStreamUrl()); } else { diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java index 17473feb3..b66826c0c 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java @@ -640,9 +640,9 @@ public class PlaybackService extends Service { } @Override - public void reloadUI(boolean onlyMediaSession) { + public void onMediaChanged(boolean reloadUI) { Log.d(TAG, "reloadUI callback reached"); - if (!onlyMediaSession) { + if (reloadUI) { sendNotificationBroadcast(NOTIFICATION_TYPE_RELOAD, 0); } PlaybackService.this.updateMediaSessionMetadata(getPlayable()); diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceMediaPlayer.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceMediaPlayer.java index 132dd095b..206eccb65 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceMediaPlayer.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceMediaPlayer.java @@ -322,7 +322,7 @@ public abstract class PlaybackServiceMediaPlayer { void onBufferingUpdate(int percent); - void reloadUI(boolean onlyMediaSession); + void onMediaChanged(boolean reloadUI); boolean onMediaPlayerInfo(int code, @StringRes int resourceId); diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java index 5d7c53b23..287bb1776 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java @@ -244,7 +244,7 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer { setPlayerStatus(PlayerStatus.INDETERMINATE, currentMedia); } if (updateUI) { - callback.reloadUI(false); + callback.onMediaChanged(true); } } @@ -302,7 +302,7 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer { setPlayerStatus(PlayerStatus.INITIALIZING, media); try { media.loadMetadata(); - callback.reloadUI(false); + callback.onMediaChanged(true); setPlayerStatus(PlayerStatus.INITIALIZED, media); if (prepareImmediately) { prepare(); |