mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Removed the placeholder png for the album and made the gradient in the various placeholders softer
This commit is contained in:
parent
47be372399
commit
74ff105eee
4 changed files with 4 additions and 9 deletions
|
|
@ -12,7 +12,6 @@ import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
|||
import com.bumptech.glide.request.RequestOptions;
|
||||
import com.bumptech.glide.signature.ObjectKey;
|
||||
import com.cappielloantonio.play.App;
|
||||
import com.cappielloantonio.play.R;
|
||||
import com.cappielloantonio.play.util.Preferences;
|
||||
import com.google.android.material.elevation.SurfaceColors;
|
||||
|
||||
|
|
@ -67,17 +66,13 @@ public class CustomGlideRequest {
|
|||
|
||||
public static class Builder {
|
||||
private final RequestManager requestManager;
|
||||
private final Object item;
|
||||
private Object item;
|
||||
|
||||
private Builder(Context context, String item) {
|
||||
this.requestManager = Glide.with(context);
|
||||
|
||||
if (Preferences.isDataSavingMode()) {
|
||||
this.item = R.drawable.default_album_art;
|
||||
} else if (item != null) {
|
||||
if (item != null && !Preferences.isDataSavingMode()) {
|
||||
this.item = createUrl(item, Preferences.getImageSize());
|
||||
} else {
|
||||
this.item = R.drawable.default_album_art;
|
||||
}
|
||||
|
||||
requestManager.applyDefaultRequestOptions(createRequestOptions(context, item));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue