mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
Sort profiles by created at descending when shown in a list.
This commit is contained in:
@@ -42,7 +42,7 @@ class NotificationProfileSelectionFragment : DSLSettingsBottomSheetFragment() {
|
||||
|
||||
return configure {
|
||||
|
||||
state.notificationProfiles.forEach { profile ->
|
||||
state.notificationProfiles.sortedDescending().forEach { profile ->
|
||||
customPref(
|
||||
NotificationProfileSelection.Entry(
|
||||
isOn = profile == activeProfile,
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user