Skip to content

Commit

Permalink
Fixed Plugin lifecycle onDetachedFromActivity in Android
Browse files Browse the repository at this point in the history
  • Loading branch information
javaherisaber committed Sep 6, 2022
1 parent 4a0fb6d commit b491ae8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,11 @@ public void onReattachedToActivityForConfigChanges(@NonNull ActivityPluginBindin

@Override
public void onDetachedFromActivity() {

if (channel == null) {
return;
}
channel.setMethodCallHandler(null);
channel = null;
activity = null;
}
}

0 comments on commit b491ae8

Please sign in to comment.