Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort "new group story" entries by recency.
- Loading branch information
1 parent
28310a8
commit e517232
Showing
5 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
app/src/main/java/org/thoughtcrime/securesms/contacts/paged/ContactSearchSortOrder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.thoughtcrime.securesms.contacts.paged | ||
|
||
/** | ||
* Different options for sort order of contact search items. | ||
*/ | ||
enum class ContactSearchSortOrder { | ||
/** | ||
* The "natural" expected order. This is considered the default ordering. | ||
* For example, Groups would normally be ordered by title from A-Z. | ||
*/ | ||
NATURAL, | ||
|
||
/** | ||
* The requested ordering is by recency. This can mean different things for | ||
* different contact types. For example, for Groups, this entry means that | ||
* the results are ordered by latest message date in descending order. | ||
*/ | ||
RECENCY | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters