updating Recents + adding handling for placeholders

This commit is contained in:
tibbi
2020-05-07 22:50:19 +02:00
parent dc20b20037
commit e604a3e88b
10 changed files with 123 additions and 56 deletions

View File

@ -0,0 +1,14 @@
package com.simplemobiletools.dialer.helpers
import android.content.Context
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.dialer.models.RecentCall
class RecentsHelper(val context: Context) {
fun getRecentCalls(callback: (ArrayList<RecentCall>) -> Unit) {
ensureBackgroundThread {
val recents = ArrayList<RecentCall>()
callback(recents)
}
}
}