fix #115, add an option to show grouped calls

This commit is contained in:
tibbi
2020-12-31 21:28:16 +01:00
parent f55bbfd96d
commit 82e39ac8ad
5 changed files with 69 additions and 10 deletions

View File

@ -46,7 +46,8 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
override fun refreshItems() {
val privateCursor = context?.getMyContactsCursor()?.loadInBackground()
RecentsHelper(context).getRecentCalls { recents ->
val groupSubsequentCalls = context?.config?.groupSubsequentCalls ?: false
RecentsHelper(context).getRecentCalls(groupSubsequentCalls) { recents ->
SimpleContactsHelper(context).getAvailableContacts(false) { contacts ->
val privateContacts = MyContactsContentProvider.getSimpleContacts(context, privateCursor)
@ -105,7 +106,8 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
recents_placeholder.text = context.getString(R.string.no_previous_calls)
recents_placeholder_2.beGone()
RecentsHelper(context).getRecentCalls { recents ->
val groupSubsequentCalls = context?.config?.groupSubsequentCalls ?: false
RecentsHelper(context).getRecentCalls(groupSubsequentCalls) { recents ->
activity?.runOnUiThread {
gotRecents(recents)
}