update options for custom glide request
This commit is contained in:
parent
5006611229
commit
fb87d6b946
14 changed files with 16 additions and 17 deletions
|
|
@ -90,7 +90,7 @@ public class PlayingNotificationImpl extends PlayingNotification {
|
|||
}
|
||||
|
||||
target = CustomGlideRequest.Builder.from(Glide.with(service), song.primary)
|
||||
.generatePalette(service).build()
|
||||
.palette(service).build()
|
||||
.into(new SimpleTarget<BitmapPaletteWrapper>(bigNotificationImageSize, bigNotificationImageSize) {
|
||||
@Override
|
||||
public void onResourceReady(BitmapPaletteWrapper resource, Transition<? super BitmapPaletteWrapper> glideAnimation) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public class PlayingNotificationImpl24 extends PlayingNotification {
|
|||
final int bigNotificationImageSize = service.getResources().getDimensionPixelSize(R.dimen.notification_big_image_size);
|
||||
service.runOnUiThread(() -> CustomGlideRequest.Builder
|
||||
.from(Glide.with(service), song.primary)
|
||||
.generatePalette(service).build()
|
||||
.palette(service).build()
|
||||
.into(new SimpleTarget<BitmapPaletteWrapper>(bigNotificationImageSize, bigNotificationImageSize) {
|
||||
@Override
|
||||
public void onResourceReady(BitmapPaletteWrapper resource, Transition<? super BitmapPaletteWrapper> glideAnimation) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue