mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Change the distributor in dialog cancellation only if there is no existing one
This commit is contained in:
parent
3f944e9d36
commit
95556d2551
1 changed files with 5 additions and 2 deletions
|
@ -206,8 +206,11 @@ class UnifiedPushHelper @Inject constructor(
|
|||
onDistributorSelected(distributor)
|
||||
}
|
||||
.setOnCancelListener {
|
||||
// By default, use internal solution (fcm/background sync)
|
||||
onDistributorSelected(context.packageName)
|
||||
// we do not want to change the distributor on behalf of the user
|
||||
if (UnifiedPush.getDistributor(context).isEmpty()) {
|
||||
// By default, use internal solution (fcm/background sync)
|
||||
onDistributorSelected(context.packageName)
|
||||
}
|
||||
}
|
||||
.setCancelable(true)
|
||||
.show()
|
||||
|
|
Loading…
Add table
Reference in a new issue