setOnDismissListener should cover all the cases.

This commit is contained in:
Benoit Marty 2022-06-01 16:11:14 +02:00 committed by Benoit Marty
parent cc80bf986c
commit 399e95a247

View File

@ -171,14 +171,10 @@ class UnifiedPushHelper @Inject constructor(
up.saveDistributor(context, distributor) up.saveDistributor(context, distributor)
Timber.i("Saving distributor: $distributor") Timber.i("Saving distributor: $distributor")
up.registerApp(context) up.registerApp(context)
onDoneRunnable?.run()
} }
.setOnDismissListener { .setOnDismissListener {
onDoneRunnable?.run() onDoneRunnable?.run()
} }
.setOnCancelListener {
onDoneRunnable?.run()
}
.show() .show()
} }
} }