From 31c4ed7d0e22c4a441b033f86c572822506e4702 Mon Sep 17 00:00:00 2001 From: Tobias Groza Date: Tue, 5 Mar 2019 20:57:05 +0100 Subject: [PATCH] Update app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java Co-Authored-By: Redirion --- .../main/java/org/schabi/newpipe/player/BackgroundPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java b/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java index 83ac85b06..3989581fd 100644 --- a/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java @@ -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;