Couple more code review changes

This commit is contained in:
k1rakishou 2020-01-03 16:29:04 +03:00
parent c46a0f7b2e
commit eb5fb42da9
2 changed files with 8 additions and 4 deletions

View file

@ -403,9 +403,13 @@ public final class BackgroundPlayer extends Service {
updateProgress(currentProgress, duration, bufferPercent);
if (!shouldUpdateOnProgress) return;
if (timesNotificationUpdated > NOTIFICATION_UPDATES_BEFORE_RESET) {resetNotification();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O /*Oreo*/)
updateNotificationThumbnail();}
if (timesNotificationUpdated > NOTIFICATION_UPDATES_BEFORE_RESET) {
resetNotification();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O /*Oreo*/) {
updateNotificationThumbnail();
}
}
if (bigNotRemoteView != null) {
if (cachedDuration != duration) {
cachedDuration = duration;

View file

@ -82,7 +82,7 @@ public class MediaSessionManager {
}
/**
* Should be called on player destruction to prevent leakage.BitmapUtils
* Should be called on player destruction to prevent leakage.
*/
public void dispose() {
this.sessionConnector.setPlayer(null);