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:
Vitor Pamplona
2025-07-03 10:27:47 -04:00
parent 5bcaf065a3
commit 69db9bdcd5
13 changed files with 97 additions and 80 deletions
@@ -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) {