update preference utils for image cache
This commit is contained in:
parent
ffa0dffa26
commit
a69b0e80e0
7 changed files with 9 additions and 15 deletions
|
|
@ -82,7 +82,7 @@ public final class PreferenceUtil {
|
|||
public static final String REMEMBER_SHUFFLE = "remember_shuffle";
|
||||
public static final String REMEMBER_QUEUE = "remember_queue";
|
||||
|
||||
public static final String CACHE_SIZE = "cache_size";
|
||||
public static final String IMAGE_CACHE_SIZE = "image_cache_size";
|
||||
|
||||
private static PreferenceUtil sInstance;
|
||||
|
||||
|
|
@ -387,8 +387,8 @@ public final class PreferenceUtil {
|
|||
editor.apply();
|
||||
}
|
||||
|
||||
public final int getCacheSize() {
|
||||
return Integer.parseInt(mPreferences.getString(CACHE_SIZE, "400000000"));
|
||||
public final int getImageCacheSize() {
|
||||
return Integer.parseInt(mPreferences.getString(IMAGE_CACHE_SIZE, "400000000"));
|
||||
}
|
||||
|
||||
public List<CategoryInfo> getCategories() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue