处理 unregister 可能的问题
This commit is contained in:
parent
b0a1591b0f
commit
ef91313681
@ -91,7 +91,9 @@ public class RedLightScan extends CordovaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void unregisterReceiver() {
|
private void unregisterReceiver() {
|
||||||
webView.getContext().unregisterReceiver(receiver);
|
if (receiver != null) {
|
||||||
|
webView.getContext().unregisterReceiver(receiver);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user