kopia lustrzana https://github.com/ryukoposting/Signal-Android
Sort profiles by created at descending when shown in a list.
rodzic
c30a43ef45
commit
19818443ff
|
@ -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),
|
||||
|
|
Ładowanie…
Reference in New Issue