Remove never-matched if
This commit is contained in:
parent
42c580c249
commit
e2646c3243
@ -146,10 +146,6 @@ 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 == UnifiedPush.getDistributor(context)) {
|
|
||||||
Timber.d("Same distributor selected again, no action")
|
|
||||||
return@setItems
|
|
||||||
}
|
|
||||||
|
|
||||||
activity.lifecycleScope.launch {
|
activity.lifecycleScope.launch {
|
||||||
UnifiedPush.saveDistributor(context, distributor)
|
UnifiedPush.saveDistributor(context, distributor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user