Update app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java

Co-Authored-By: Redirion <redirion@web.de>
This commit is contained in:
Tobias Groza 2019-03-05 20:57:05 +01:00 committed by GitHub
parent 694688cd85
commit c8ed67f8be

View file

@ -351,7 +351,7 @@ public final class BackgroundPlayer extends Service {
if (!shouldUpdateOnProgress) return;
resetNotification();
if(Build.VERSION.SDK_INT >= 26 /*Oreo*/) updateNotificationThumbnail();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O /*Oreo*/) updateNotificationThumbnail();
if (bigNotRemoteView != null) {
if(cachedDuration != duration) {
cachedDuration = duration;