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

fork-5.53.8
Cody Henthorne 2021-12-09 14:57:45 -05:00
rodzic c30a43ef45
commit 19818443ff
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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),