mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 19:51:10 +00:00
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:
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() {
|
||||
|
||||
Reference in New Issue
Block a user