From dcac18f75656f048b03ac77ee783c2ebeb70a770 Mon Sep 17 00:00:00 2001 From: Eugene Cheung Date: Wed, 28 Jun 2017 17:50:40 -0400 Subject: [PATCH] Default notification background to white --- .../service/notification/PlayingNotificationImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/kabouzeid/gramophone/service/notification/PlayingNotificationImpl.java b/app/src/main/java/com/kabouzeid/gramophone/service/notification/PlayingNotificationImpl.java index 843affc6..25408dc4 100644 --- a/app/src/main/java/com/kabouzeid/gramophone/service/notification/PlayingNotificationImpl.java +++ b/app/src/main/java/com/kabouzeid/gramophone/service/notification/PlayingNotificationImpl.java @@ -102,7 +102,7 @@ public class PlayingNotificationImpl extends PlayingNotification { @Override public void onLoadFailed(Exception e, Drawable errorDrawable) { super.onLoadFailed(e, errorDrawable); - update(null, Color.TRANSPARENT); + update(null, Color.WHITE); } private void update(@Nullable Bitmap bitmap, int bgColor) { @@ -115,10 +115,10 @@ public class PlayingNotificationImpl extends PlayingNotification { } if (!PreferenceUtil.getInstance(service).coloredNotification()) { - bgColor = Color.TRANSPARENT; + bgColor = Color.WHITE; } setBackgroundColor(bgColor); - setNotificationContent(bgColor == Color.TRANSPARENT ? Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP : ColorUtil.isColorLight(bgColor)); + setNotificationContent(ColorUtil.isColorLight(bgColor)); if (stopped) return; // notification has been stopped before loading was finished