Skip to content

Commit

Permalink
Fix custom sorting condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafcube committed Oct 1, 2024
1 parent 4231da2 commit ea4fe33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class MainActivity : SimpleActivity() {
if (VERSION.SDK_INT >= VERSION_CODES.R) {
val starred = cachedContacts.filter { it.starred == 1 && it.phoneNumbers.isNotEmpty() }
this.config.favoritesContactsOrder.let { order ->
if (order.isEmpty()) {
if (!config.isCustomOrderSelected) {
starred.sorted()
} else {
val orderList = Converters().jsonToStringList(order).withIndex().associate { it.value to it.index }
Expand Down

0 comments on commit ea4fe33

Please sign in to comment.