use long type for cache sizes

This commit is contained in:
dkanada 2021-05-21 08:34:55 +09:00
commit d8a0ba23b6
4 changed files with 5 additions and 5 deletions

View file

@ -381,11 +381,11 @@ public final class PreferenceUtil {
return mPreferences.getString(LOCATION_CACHE, mContext.getCacheDir().toString());
}
public final int getImageCacheSize() {
public final long getImageCacheSize() {
return Integer.parseInt(mPreferences.getString(IMAGE_CACHE_SIZE, "400000000"));
}
public final int getMediaCacheSize() {
public final long getMediaCacheSize() {
return Integer.parseInt(mPreferences.getString(MEDIA_CACHE_SIZE, "400000000"));
}