- Renamed "history" file to more intuitive "calls" file.

This commit is contained in:
Juha Heinanen
2019-10-10 10:47:46 +03:00
parent 5e1ac2e337
commit ccee613134
5 changed files with 23 additions and 24 deletions
@@ -197,8 +197,8 @@ class CallsActivity : AppCompatActivity() {
private fun aorGenerateHistory(aor: String) {
uaHistory.clear()
for (i in CallHistory.history().indices.reversed()) {
val h = CallHistory.history()[i]
for (i in BaresipService.callHistory.indices.reversed()) {
val h = BaresipService.callHistory[i]
if (h.aor == aor) {
var direction: Int
if (h.direction == "in")
@@ -231,7 +231,7 @@ class CallsActivity : AppCompatActivity() {
private fun removeUaHistoryAt(i: Int) {
for (index in uaHistory[i].indexes)
CallHistory.history().removeAt(index)
BaresipService.callHistory.removeAt(index)
uaHistory.removeAt(i)
}