Sort profiles by created at descending when shown in a list.

This commit is contained in:
Cody Henthorne
2021-12-09 14:57:45 -05:00
parent c30a43ef45
commit 19818443ff
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class NotificationProfileSelectionFragment : DSLSettingsBottomSheetFragment() {
return configure {
state.notificationProfiles.forEach { profile ->
state.notificationProfiles.sortedDescending().forEach { profile ->
customPref(
NotificationProfileSelection.Entry(
isOn = profile == activeProfile,

View File

@@ -90,7 +90,7 @@ class NotificationProfilesFragment : DSLSettingsFragment() {
)
val activeProfile: NotificationProfile? = NotificationProfiles.getActiveProfile(profiles)
for (profile: NotificationProfile in profiles) {
profiles.sortedDescending().forEach { profile ->
customPref(
NotificationProfilePreference.Model(
title = DSLSettingsText.from(profile.name),