Skip to content

Commit

Permalink
fix(android): Silence deprecation warning on handlePermissionResult (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Nov 16, 2022
1 parent f3c0462 commit 888b13e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public CordovaPlugin getActivityResultCallback() {
* @param grantResults
* @return true if Cordova handled the permission request, false if not
*/
@SuppressWarnings("deprecation")
public boolean handlePermissionResult(int requestCode, String[] permissions, int[] grantResults) throws JSONException {
Pair<CordovaPlugin, Integer> callback = permissionResultCallbacks.getAndRemoveCallback(requestCode);
if (callback != null) {
Expand Down

0 comments on commit 888b13e

Please sign in to comment.