Default notification background to white
This commit is contained in:
parent
41b81ce14c
commit
dcac18f756
1 changed files with 3 additions and 3 deletions
|
|
@ -102,7 +102,7 @@ public class PlayingNotificationImpl extends PlayingNotification {
|
||||||
@Override
|
@Override
|
||||||
public void onLoadFailed(Exception e, Drawable errorDrawable) {
|
public void onLoadFailed(Exception e, Drawable errorDrawable) {
|
||||||
super.onLoadFailed(e, errorDrawable);
|
super.onLoadFailed(e, errorDrawable);
|
||||||
update(null, Color.TRANSPARENT);
|
update(null, Color.WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void update(@Nullable Bitmap bitmap, int bgColor) {
|
private void update(@Nullable Bitmap bitmap, int bgColor) {
|
||||||
|
|
@ -115,10 +115,10 @@ public class PlayingNotificationImpl extends PlayingNotification {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!PreferenceUtil.getInstance(service).coloredNotification()) {
|
if (!PreferenceUtil.getInstance(service).coloredNotification()) {
|
||||||
bgColor = Color.TRANSPARENT;
|
bgColor = Color.WHITE;
|
||||||
}
|
}
|
||||||
setBackgroundColor(bgColor);
|
setBackgroundColor(bgColor);
|
||||||
setNotificationContent(bgColor == Color.TRANSPARENT ? Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP : ColorUtil.isColorLight(bgColor));
|
setNotificationContent(ColorUtil.isColorLight(bgColor));
|
||||||
|
|
||||||
if (stopped)
|
if (stopped)
|
||||||
return; // notification has been stopped before loading was finished
|
return; // notification has been stopped before loading was finished
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue