reduce code duplication between widget styles

This commit is contained in:
dkanada 2021-05-21 09:06:58 +09:00
commit 08034e0696
5 changed files with 44 additions and 88 deletions

View file

@ -390,11 +390,11 @@ public final class PreferenceUtil {
}
public final long getImageCacheSize() {
return Integer.parseInt(mPreferences.getString(IMAGE_CACHE_SIZE, "400000000"));
return Long.parseLong(mPreferences.getString(IMAGE_CACHE_SIZE, "400000000"));
}
public final long getMediaCacheSize() {
return Integer.parseInt(mPreferences.getString(MEDIA_CACHE_SIZE, "400000000"));
return Long.parseLong(mPreferences.getString(MEDIA_CACHE_SIZE, "400000000"));
}
public List<CategoryInfo> getCategories() {