mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Remove never-matched if
This commit is contained in:
parent
42c580c249
commit
e2646c3243
1 changed files with 0 additions and 4 deletions
|
@ -146,10 +146,6 @@ class UnifiedPushHelper @Inject constructor(
|
|||
.setTitle(stringProvider.getString(R.string.unifiedpush_getdistributors_dialog_title))
|
||||
.setItems(distributorsName.toTypedArray()) { _, which ->
|
||||
val distributor = distributors[which]
|
||||
if (distributor == UnifiedPush.getDistributor(context)) {
|
||||
Timber.d("Same distributor selected again, no action")
|
||||
return@setItems
|
||||
}
|
||||
|
||||
activity.lifecycleScope.launch {
|
||||
UnifiedPush.saveDistributor(context, distributor)
|
||||
|
|
Loading…
Reference in a new issue