Added the option to set the size of the cover images

This commit is contained in:
CappielloAntonio 2021-08-31 09:58:14 +02:00
parent 34818473da
commit c522382da2
5 changed files with 40 additions and 9 deletions

View file

@ -19,6 +19,7 @@ public class PreferenceUtil {
public static final String POSITION = "position";
public static final String PROGRESS = "progress";
public static final String IMAGE_CACHE_SIZE = "image_cache_size";
public static final String IMAGE_SIZE = "image_size";
public static final String MEDIA_CACHE_SIZE = "media_cache_size";
private static PreferenceUtil sInstance;
@ -127,4 +128,8 @@ public class PreferenceUtil {
public final int getMediaCacheSize() {
return Integer.parseInt(mPreferences.getString(MEDIA_CACHE_SIZE, "400000000"));
}
public final int getImageSize() {
return Integer.parseInt(mPreferences.getString(IMAGE_SIZE, "-1"));
}
}