Set distributor dialog always cancelable

ATM, it uses the default fallback if cancelled
This commit is contained in:
sim 2022-08-24 22:50:08 +02:00
parent cda50dca8c
commit 02d54878c3

View File

@ -104,8 +104,7 @@ class UnifiedPushHelper @Inject constructor(
pushersManager = pushersManager,
onDoneRunnable = onDoneRunnable,
distributors = distributors,
unregisterFirst = force,
cancellable = !force
unregisterFirst = force
)
}
}
@ -122,7 +121,6 @@ class UnifiedPushHelper @Inject constructor(
pushersManager,
onDoneRunnable, distributors,
unregisterFirst = true,
cancellable = true,
)
}
@ -132,7 +130,6 @@ class UnifiedPushHelper @Inject constructor(
onDoneRunnable: Runnable?,
distributors: List<String>,
unregisterFirst: Boolean,
cancellable: Boolean,
) {
val internalDistributorName = stringProvider.getString(
if (fcmHelper.isFirebaseAvailable()) {
@ -176,7 +173,7 @@ class UnifiedPushHelper @Inject constructor(
UnifiedPush.registerApp(context)
onDoneRunnable?.run()
}
.setCancelable(cancellable)
.setCancelable(true)
.show()
}