use R.drawable.fallback_cover_large for notification instead of fallback cover.

This is the same cover used in widgets and the media library, so it's more consistent.
This commit is contained in:
Adrian Ulrich 2021-04-18 15:28:02 +02:00
parent 3e8c74125f
commit cf9aa1df0e

View File

@ -39,6 +39,7 @@ import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
@ -2121,7 +2122,7 @@ public final class PlaybackService extends Service
final boolean playing = (state & FLAG_PLAYING) != 0;
Bitmap cover = song.getMediumCover(this);
if (cover == null) {
cover = CoverBitmap.generateDefaultCover(this, CoverCache.SIZE_MEDIUM, CoverCache.SIZE_MEDIUM);
cover = BitmapFactory.decodeResource(getResources(), R.drawable.fallback_cover_large);
}
ComponentName service = new ComponentName(this, PlaybackService.class);