Reviews onDispose calls to make sure the onDispose is disposing the data from the previous composable, since it can happen AFTER a new composition already took place. So the references must match the old composition.
This commit is contained in:
+5
-3
@@ -114,9 +114,11 @@ class ExternalSignerLauncher(
|
||||
}
|
||||
|
||||
/** Call this function when the activity is destroyed or is about to be replaced. */
|
||||
fun clearLauncher() {
|
||||
this.signerAppLauncher = null
|
||||
this.contentResolver = null
|
||||
fun clearLauncherIf(launcher: ((Intent) -> Unit)) {
|
||||
if (signerAppLauncher == launcher) {
|
||||
this.signerAppLauncher = null
|
||||
this.contentResolver = null
|
||||
}
|
||||
}
|
||||
|
||||
fun newResult(data: Intent) {
|
||||
|
||||
Reference in New Issue
Block a user