mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Simple filter for now on call logs
This commit is contained in:
parent
ca5648ed03
commit
cb9c43c2e7
1 changed files with 4 additions and 2 deletions
|
|
@ -89,8 +89,10 @@ class CallsListViewModel @UiThread constructor() : ViewModel() {
|
|||
// TODO : filter depending on currently selected account
|
||||
// TODO : Add support for call logs in magic search
|
||||
for (callLog in coreContext.core.callLogs) {
|
||||
val model = CallLogModel(callLog)
|
||||
list.add(model)
|
||||
if (callLog.remoteAddress.asStringUriOnly().contains(filter)) {
|
||||
val model = CallLogModel(callLog)
|
||||
list.add(model)
|
||||
}
|
||||
}
|
||||
|
||||
callLogs.postValue(list)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue