Apply .toImmutableList() only once.
This commit is contained in:
parent
3349df5a24
commit
ab99137baf
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ class NotificationSettingsPresenter @Inject constructor(
|
|||
}
|
||||
// List of Distributor names
|
||||
val distributorNames = remember {
|
||||
distributors.map { it.second.name }
|
||||
distributors.map { it.second.name }.toImmutableList()
|
||||
}
|
||||
|
||||
var currentDistributorName by remember { mutableStateOf<AsyncAction<String>>(AsyncAction.Uninitialized) }
|
||||
|
|
@ -164,7 +164,7 @@ class NotificationSettingsPresenter @Inject constructor(
|
|||
),
|
||||
changeNotificationSettingAction = changeNotificationSettingAction.value,
|
||||
currentPushDistributor = currentDistributorName,
|
||||
availablePushDistributors = distributorNames.toImmutableList(),
|
||||
availablePushDistributors = distributorNames,
|
||||
showChangePushProviderDialog = showChangePushProviderDialog,
|
||||
eventSink = ::handleEvents
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue