Skip to content

Commit

Permalink
fix(auth, android): fix crash on Android where detaching from engine …
Browse files Browse the repository at this point in the history
…was not properly resetting the Pigeon handler
  • Loading branch information
Lyokone committed Jul 25, 2022
1 parent 82941a9 commit 457fda5
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -128,8 +128,9 @@ public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
channel.setMethodCallHandler(null);
channel = null;
messenger = null;
GeneratedAndroidFirebaseAuth.MultiFactorUserHostApi.setup(null, this);
GeneratedAndroidFirebaseAuth.MultiFactoResolverHostApi.setup(null, this);
GeneratedAndroidFirebaseAuth.MultiFactorUserHostApi.setup(binding.getBinaryMessenger(), null);
GeneratedAndroidFirebaseAuth.MultiFactoResolverHostApi.setup(
binding.getBinaryMessenger(), null);

removeEventListeners();
}
Expand Down

0 comments on commit 457fda5

Please sign in to comment.