mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
adding a menu button for clearing the call history quicker
This commit is contained in:
@ -119,4 +119,13 @@ class RecentsHelper(private val context: Context) {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("MissingPermission")
|
||||
fun removeAllRecentCalls(callback: () -> Unit) {
|
||||
ensureBackgroundThread {
|
||||
val uri = Calls.CONTENT_URI
|
||||
context.contentResolver.delete(uri, null, null)
|
||||
callback()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user