mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
updating Recents + adding handling for placeholders
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user