mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
- Removed middle layer of abstraction for subsonic classes
- Used kotlin for classes
This commit is contained in:
parent
917c0839de
commit
ca15f51c85
168 changed files with 2026 additions and 6588 deletions
|
|
@ -10,7 +10,7 @@ import com.bumptech.glide.load.DecodeFormat;
|
|||
import com.bumptech.glide.load.engine.cache.DiskLruCacheFactory;
|
||||
import com.bumptech.glide.module.AppGlideModule;
|
||||
import com.bumptech.glide.request.RequestOptions;
|
||||
import com.cappielloantonio.play.util.PreferenceUtil;
|
||||
import com.cappielloantonio.play.util.Preferences;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ public class CustomGlideModule extends AppGlideModule {
|
|||
@Override
|
||||
public void applyOptions(@NonNull Context context, GlideBuilder builder) {
|
||||
File file = new File(context.getCacheDir() + "glide");
|
||||
int size = PreferenceUtil.getInstance(context).getImageCacheSize();
|
||||
int size = Preferences.getImageCacheSize();
|
||||
|
||||
builder.setDiskCache(new DiskLruCacheFactory(() -> file, size));
|
||||
builder.setDefaultRequestOptions(new RequestOptions().format(DecodeFormat.PREFER_RGB_565));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue