Code refactor
parent
10874744f3
commit
fd582fff69
|
@ -105,11 +105,11 @@ class BlurPlayerFragment : AbsPlayerFragment(), SharedPreferences.OnSharedPrefer
|
||||||
.generatePalette(requireContext()).build()
|
.generatePalette(requireContext()).build()
|
||||||
.dontAnimate()
|
.dontAnimate()
|
||||||
.transform(
|
.transform(
|
||||||
BlurTransformation.Builder(requireContext()).blurRadius(blurAmount.toFloat())
|
BlurTransformation.Builder(requireContext())
|
||||||
|
.blurRadius(blurAmount.toFloat())
|
||||||
.build()
|
.build()
|
||||||
)
|
)
|
||||||
.into(object : RetroMusicColoredTarget(colorBackground) {
|
.into(object : RetroMusicColoredTarget(colorBackground) {
|
||||||
|
|
||||||
override fun onColorReady(colors: MediaNotificationProcessor) {
|
override fun onColorReady(colors: MediaNotificationProcessor) {
|
||||||
if (colors.backgroundColor == defaultFooterColor) {
|
if (colors.backgroundColor == defaultFooterColor) {
|
||||||
colorBackground.setColorFilter(colors.backgroundColor)
|
colorBackground.setColorFilter(colors.backgroundColor)
|
||||||
|
|
|
@ -102,7 +102,7 @@ public class SongGlideRequest {
|
||||||
//noinspection unchecked
|
//noinspection unchecked
|
||||||
return createBaseRequest(requestManager, song, ignoreMediaStore)
|
return createBaseRequest(requestManager, song, ignoreMediaStore)
|
||||||
.diskCacheStrategy(DEFAULT_DISK_CACHE_STRATEGY)
|
.diskCacheStrategy(DEFAULT_DISK_CACHE_STRATEGY)
|
||||||
.placeholder(DEFAULT_ERROR_IMAGE)
|
.error(DEFAULT_ERROR_IMAGE)
|
||||||
.animate(DEFAULT_ANIMATION)
|
.animate(DEFAULT_ANIMATION)
|
||||||
.signature(createSignature(song));
|
.signature(createSignature(song));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue