mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +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));
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB |
|
|
@ -3,6 +3,6 @@
|
|||
<gradient
|
||||
android:angle="270"
|
||||
android:dither="true"
|
||||
android:endColor="#FF121212"
|
||||
android:endColor="#80000000"
|
||||
android:startColor="#00000000" />
|
||||
</shape>
|
||||
|
|
@ -3,6 +3,6 @@
|
|||
<gradient
|
||||
android:angle="180"
|
||||
android:dither="true"
|
||||
android:endColor="#FF000000"
|
||||
android:endColor="#80000000"
|
||||
android:startColor="#00000000" />
|
||||
</shape>
|
||||
Loading…
Add table
Add a link
Reference in a new issue