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 111ad14ad3
commit 31c4ed7d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;