update dependency and refactor music service
This commit is contained in:
parent
a88e851c4f
commit
0f14bf037f
9 changed files with 34 additions and 112 deletions
|
|
@ -95,6 +95,7 @@ public class AppWidgetAlbum extends BaseAppWidget {
|
|||
if (target != null) {
|
||||
Glide.clear(target);
|
||||
}
|
||||
|
||||
target = CustomGlideRequest.Builder.from(Glide.with(appContext), song.primary)
|
||||
.asBitmap().build()
|
||||
.into(new SimpleTarget<Bitmap>(widgetImageSize, widgetImageSize) {
|
||||
|
|
@ -115,6 +116,7 @@ public class AppWidgetAlbum extends BaseAppWidget {
|
|||
} else {
|
||||
appWidgetView.setImageViewBitmap(R.id.image, bitmap);
|
||||
}
|
||||
|
||||
pushUpdate(appContext, appWidgetIds, appWidgetView);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue