Merge pull request #238 from OctoNezd/master
Make notifications pretty on Android 13
This commit is contained in:
commit
45600bed05
2 changed files with 5 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ android {
|
|||
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 32
|
||||
targetSdk 33
|
||||
|
||||
versionCode 18
|
||||
versionName '1.3.5'
|
||||
|
|
|
|||
|
|
@ -518,7 +518,10 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
|||
metaData.putLong(MediaMetadataCompat.METADATA_KEY_NUM_TRACKS, queueManager.getPlayingQueue().size());
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q && PreferenceUtil.getInstance(this).getShowAlbumCover()) {
|
||||
if (
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ||
|
||||
(Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q && PreferenceUtil.getInstance(this).getShowAlbumCover())
|
||||
) {
|
||||
final Point screenSize = Util.getScreenSize(MusicService.this);
|
||||
final RequestBuilder<Bitmap> request = CustomGlideRequest.Builder
|
||||
.from(MusicService.this, song.primary, song.blurHash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue