fix(android): changed initial value of nextLockIdentifier from 0 to 1 (#1689)

Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
This commit is contained in:
Christian Nilsson
2020-12-08 04:56:28 +01:00
committed by GitHub
co-authored by Jamon Holmgren
parent f1e7f3dc4a
commit 53c0382cd0
@@ -61,7 +61,7 @@ public class RNCWebViewModule extends ReactContextBaseJavaModule implements Acti
DO_NOT_OVERRIDE,
}
private int nextLockIdentifier = 0;
private int nextLockIdentifier = 1;
private final HashMap<Integer, AtomicReference<ShouldOverrideCallbackState>> shouldOverrideLocks = new HashMap<>();
public synchronized Pair<Integer, AtomicReference<ShouldOverrideCallbackState>> getNewLock() {