[Android] This block of code in Utils.buildArray() is causing freeze

I am using react-native-firebase 1.1.0

if (key > expectedKey) {
  for (long i = expectedKey; i < key; i++) {
    array.pushNull();
  }
  expectedKey = key;
}

But, since long key = Long.parseLong(child.getKey()); and my key is 15 digits++ long. This block is practically cannot be done.

Author: Fantashit

1 thought on “[Android] This block of code in Utils.buildArray() is causing freeze

Comments are closed.