Eduard Boloș
09/12/2022, 3:01 PMSeb Jachec
09/12/2022, 3:10 PMbod
09/12/2022, 3:12 PMagrosner
09/12/2022, 6:27 PMagrosner
09/12/2022, 6:28 PMJournalMode resolve(Context context) {
if (this != AUTOMATIC) {
return this;
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
ActivityManager manager = (ActivityManager)
context.getSystemService(Context.ACTIVITY_SERVICE);
if (manager != null && !isLowRamDevice(manager)) {
return WRITE_AHEAD_LOGGING;
}
}
return TRUNCATE;
}
agrosner
09/12/2022, 6:29 PMStylianos Gakis
09/12/2022, 7:03 PMagrosner
09/12/2022, 7:30 PMfactory: SupportSQLiteOpenHelper.Factory = FrameworkSQLiteOpenHelperFactory(),
from SqlNormalizedCacheFactory
which sqldelight
uses under the hoodagrosner
09/12/2022, 7:32 PMjournalMode
which I mentioed aboveEduard Boloș
09/19/2022, 1:23 PM