mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Apply .toImmutableList() only once.
This commit is contained in:
+2
-2
@@ -87,7 +87,7 @@ class NotificationSettingsPresenter @Inject constructor(
|
|||||||
}
|
}
|
||||||
// List of Distributor names
|
// List of Distributor names
|
||||||
val distributorNames = remember {
|
val distributorNames = remember {
|
||||||
distributors.map { it.second.name }
|
distributors.map { it.second.name }.toImmutableList()
|
||||||
}
|
}
|
||||||
|
|
||||||
var currentDistributorName by remember { mutableStateOf<AsyncAction<String>>(AsyncAction.Uninitialized) }
|
var currentDistributorName by remember { mutableStateOf<AsyncAction<String>>(AsyncAction.Uninitialized) }
|
||||||
@@ -164,7 +164,7 @@ class NotificationSettingsPresenter @Inject constructor(
|
|||||||
),
|
),
|
||||||
changeNotificationSettingAction = changeNotificationSettingAction.value,
|
changeNotificationSettingAction = changeNotificationSettingAction.value,
|
||||||
currentPushDistributor = currentDistributorName,
|
currentPushDistributor = currentDistributorName,
|
||||||
availablePushDistributors = distributorNames.toImmutableList(),
|
availablePushDistributors = distributorNames,
|
||||||
showChangePushProviderDialog = showChangePushProviderDialog,
|
showChangePushProviderDialog = showChangePushProviderDialog,
|
||||||
eventSink = ::handleEvents
|
eventSink = ::handleEvents
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user