mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Refactoring
This commit is contained in:
@@ -1261,7 +1261,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
swCheckpoints.setChecked(prefs.getBoolean("checkpoints", true));
|
||||
|
||||
int sqlite_cache = prefs.getInt("sqlite_cache", DB.DEFAULT_CACHE_SIZE);
|
||||
int cache_size = sqlite_cache * class_mb * 1024 / 100;
|
||||
Integer cache_size = DB.getCacheSizeKb(getContext());
|
||||
if (cache_size == null)
|
||||
cache_size = 2000;
|
||||
tvSqliteCache.setText(getString(R.string.title_advanced_sqlite_cache,
|
||||
NF.format(sqlite_cache),
|
||||
Helper.humanReadableByteCount(cache_size * 1024L)));
|
||||
|
||||
Reference in New Issue
Block a user