Skip to content

Commit

Permalink
fix(android): dont release calls that are manually saved, eg listener…
Browse files Browse the repository at this point in the history
…s/watchers (#3857)

Co-authored-by: Dan Imhoff <[email protected]>
  • Loading branch information
carlpoole and imhoffd authored Nov 25, 2020
1 parent 4ef90d9 commit f1c8fe9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions, in
// handle permission requests by other methods on the plugin
plugin.getInstance().onRequestPermissionsResult(savedPermissionCall, requestCode, permissions, grantResults);

if (!savedPermissionCall.isReleased()) {
if (!savedPermissionCall.isReleased() && !savedPermissionCall.isSaved()) {
savedPermissionCall.release(this);
}
}
Expand Down

0 comments on commit f1c8fe9

Please sign in to comment.