mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-30 18:56:23 +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 : filter depending on currently selected account
|
||||||
// TODO : Add support for call logs in magic search
|
// TODO : Add support for call logs in magic search
|
||||||
for (callLog in coreContext.core.callLogs) {
|
for (callLog in coreContext.core.callLogs) {
|
||||||
val model = CallLogModel(callLog)
|
if (callLog.remoteAddress.asStringUriOnly().contains(filter)) {
|
||||||
list.add(model)
|
val model = CallLogModel(callLog)
|
||||||
|
list.add(model)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
callLogs.postValue(list)
|
callLogs.postValue(list)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue