mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Method renamed
This commit is contained in:
parent
7b5bbd7d53
commit
82d9a8bb16
2 changed files with 2 additions and 2 deletions
|
|
@ -255,7 +255,7 @@ public class MediaManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void timestamp(MediaItem mediaItem) {
|
public static void setLastPlayedTimestamp(MediaItem mediaItem) {
|
||||||
if (mediaItem != null) getQueueRepository().setTimestamp(mediaItem.mediaId);
|
if (mediaItem != null) getQueueRepository().setTimestamp(mediaItem.mediaId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ public class MediaService extends MediaLibraryService {
|
||||||
player.addListener(new Player.Listener() {
|
player.addListener(new Player.Listener() {
|
||||||
@Override
|
@Override
|
||||||
public void onMediaItemTransition(@Nullable MediaItem mediaItem, int reason) {
|
public void onMediaItemTransition(@Nullable MediaItem mediaItem, int reason) {
|
||||||
MediaManager.timestamp(mediaItem);
|
MediaManager.setLastPlayedTimestamp(mediaItem);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue