mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-25 09:10:53 +01:00
Ignore if no change is done - bugfix
This commit is contained in:
parent
a5378d6e94
commit
fc66e5f120
@ -156,7 +156,7 @@ class UnifiedPushHelper @Inject constructor(
|
|||||||
.setTitle(stringProvider.getString(R.string.unifiedpush_getdistributors_dialog_title))
|
.setTitle(stringProvider.getString(R.string.unifiedpush_getdistributors_dialog_title))
|
||||||
.setItems(distributorsName.toTypedArray()) { _, which ->
|
.setItems(distributorsName.toTypedArray()) { _, which ->
|
||||||
val distributor = distributors[which]
|
val distributor = distributors[which]
|
||||||
if (distributor == getCurrentDistributorName()) {
|
if (distributor == up.getDistributor(context)) {
|
||||||
Timber.d("Same distributor selected again, no action")
|
Timber.d("Same distributor selected again, no action")
|
||||||
return@setItems
|
return@setItems
|
||||||
}
|
}
|
||||||
@ -169,12 +169,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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.setCancelable(cancellable)
|
.setCancelable(cancellable)
|
||||||
.setOnDismissListener {
|
|
||||||
onDoneRunnable?.run()
|
|
||||||
}
|
|
||||||
.show()
|
.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user