mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
fix: changed the method called due to depreciation
This commit is contained in:
parent
6d3ce211dd
commit
531e36c7ca
@ -219,7 +219,7 @@ public class CordovaInterfaceImpl implements CordovaInterface {
|
|||||||
int[] grantResults) throws JSONException {
|
int[] grantResults) throws JSONException {
|
||||||
Pair<CordovaPlugin, Integer> callback = permissionResultCallbacks.getAndRemoveCallback(requestCode);
|
Pair<CordovaPlugin, Integer> callback = permissionResultCallbacks.getAndRemoveCallback(requestCode);
|
||||||
if(callback != null) {
|
if(callback != null) {
|
||||||
callback.first.onRequestPermissionResult(callback.second, permissions, grantResults);
|
callback.first.onRequestPermissionsResult(callback.second, permissions, grantResults);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user