update dependency and refactor music service

This commit is contained in:
dkanada 2020-09-06 22:42:50 +09:00
commit 0f14bf037f
9 changed files with 34 additions and 112 deletions

View file

@ -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);
}
});