Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fixed custom sorting Not Updated Until Restart the Application in favorites tab

## [Unreleased]
### Fixed
- Fixed crash in call history
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,15 @@ class FavoritesFragment(context: Context, attributeSet: AttributeSet) : MyViewPa
val orderIds = items.map { it.contactId }
val orderGsonString = Gson().toJson(orderIds)
config.favoritesContactsOrder = orderGsonString
assignCustomOrderToAllContact(items)
}
}

private fun assignCustomOrderToAllContact(orderIds: List<Contact>){
allContacts.clear()
allContacts.addAll(orderIds)
}

private fun setupLetterFastScroller(contacts: List<Contact>) {
binding.letterFastscroller.setupWithContacts(binding.fragmentList, contacts)
}
Expand Down
Loading