[database][android] fix the minimum cache size is 1mb exception

This commit is contained in:
Salakar
2019-06-05 01:54:20 +01:00
parent 1eddf3de2f
commit 390e4e6a80

View File

@@ -73,7 +73,7 @@ public class UniversalFirebaseDatabaseCommon {
if (preferences.contains(UniversalDatabaseStatics.DATABASE_PERSISTENCE_CACHE_SIZE)) {
firebaseDatabase.setPersistenceCacheSizeBytes(preferences.getLongValue(
UniversalDatabaseStatics.DATABASE_PERSISTENCE_CACHE_SIZE, 10000000)
UniversalDatabaseStatics.DATABASE_PERSISTENCE_CACHE_SIZE, 1048576L)
);
}
} catch (DatabaseException exception) {