add preference for media cache size
This commit is contained in:
parent
2817fcae45
commit
ccce5623b1
4 changed files with 22 additions and 4 deletions
|
|
@ -83,6 +83,7 @@ public final class PreferenceUtil {
|
|||
public static final String REMEMBER_QUEUE = "remember_queue";
|
||||
|
||||
public static final String IMAGE_CACHE_SIZE = "image_cache_size";
|
||||
public static final String MEDIA_CACHE_SIZE = "media_cache_size";
|
||||
|
||||
private static PreferenceUtil sInstance;
|
||||
|
||||
|
|
@ -391,6 +392,10 @@ public final class PreferenceUtil {
|
|||
return Integer.parseInt(mPreferences.getString(IMAGE_CACHE_SIZE, "400000000"));
|
||||
}
|
||||
|
||||
public final int getMediaCacheSize() {
|
||||
return Integer.parseInt(mPreferences.getString(MEDIA_CACHE_SIZE, "400000000"));
|
||||
}
|
||||
|
||||
public List<CategoryInfo> getCategories() {
|
||||
String data = mPreferences.getString(CATEGORIES, null);
|
||||
if (data != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue