mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-13 09:38:53 +08:00
[database][android] fix the minimum cache size is 1mb exception
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user