Increased resolution of notification icon

The expanded media style notification has a higher resolution than
normal large icons
This commit is contained in:
ByteHamster 2020-11-19 11:27:36 +01:00
parent 4b252250c0
commit 9989bbff9b
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class PlaybackServiceNotificationBuilder {
} }
public void loadIcon() { public void loadIcon() {
int iconSize = context.getResources().getDimensionPixelSize(android.R.dimen.notification_large_icon_width); int iconSize = (int) (128 * context.getResources().getDisplayMetrics().density);
try { try {
icon = Glide.with(context) icon = Glide.with(context)
.asBitmap() .asBitmap()