File tree Expand file tree Collapse file tree
legacy/ui/legacy/src/main
java/com/fsck/k9/ui/messagelist Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1177,6 +1177,20 @@ class LegacyMessageListFragment :
11771177
11781178 private fun prepareSortMenu (menu : Menu ) {
11791179 menu.findItem(R .id.set_sort).isVisible = true
1180+ val selectedSortItem = menu.findItem(getSelectedSortId())
1181+ selectedSortItem.title = " ${resources.getString(R .string.sort_by_indicator)} ${selectedSortItem.title} "
1182+ }
1183+
1184+ private fun getSelectedSortId (): Int {
1185+ return when (this .sortType) {
1186+ SortType .SORT_DATE -> R .id.set_sort_date
1187+ SortType .SORT_ARRIVAL -> R .id.set_sort_arrival
1188+ SortType .SORT_SUBJECT -> R .id.set_sort_subject
1189+ SortType .SORT_SENDER -> R .id.set_sort_sender
1190+ SortType .SORT_UNREAD -> R .id.set_sort_unread
1191+ SortType .SORT_FLAGGED -> R .id.set_sort_flag
1192+ SortType .SORT_ATTACHMENT -> R .id.set_sort_attach
1193+ }
11801194 }
11811195
11821196 private fun prepareDebugMenu (menu : Menu ) {
Original file line number Diff line number Diff line change 651651 <string name =" sort_by_flag" >Star</string >
652652 <string name =" sort_by_unread" >Read/unread</string >
653653 <string name =" sort_by_attach" >Attachments</string >
654+ <string name =" sort_by_indicator" >•</string >
654655
655656 <string name =" account_delete_dlg_title" >Remove Account</string >
656657
You can’t perform that action at this time.
0 commit comments