[Android] Fix notification color on some devices
Nicolas Pomepuy
git at videolan.org
Tue Dec 1 13:28:09 CET 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Dec 1 07:03:53 2020 +0100| [e1a6904896aae49d891cb1b9a51752cbe9935c4b] | committer: Nicolas Pomepuy
Fix notification color on some devices
Fixes #1552
> https://code.videolan.org/videolan/vlc-android/commit/e1a6904896aae49d891cb1b9a51752cbe9935c4b
---
.../vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.kt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.kt b/application/vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.kt
index 8afecea79..c31a95389 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.kt
@@ -27,6 +27,7 @@ import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
+import android.graphics.Color
import android.os.Build
import android.support.v4.media.session.MediaSessionCompat
import android.support.v4.media.session.PlaybackStateCompat
@@ -72,6 +73,7 @@ object NotificationHelper {
.setOngoing(playing)
.setCategory(NotificationCompat.CATEGORY_TRANSPORT)
.setDeleteIntent(piStop)
+ .setColor(Color.BLACK)
.addAction(NotificationCompat.Action(
R.drawable.ic_widget_previous_w, ctx.getString(R.string.previous),
MediaButtonReceiver.buildMediaButtonPendingIntent(ctx,
More information about the Android
mailing list