feat: CallPage UI, ReceivingCall UI, Default dialer app, can call/receive calls and hangup #45

Closed
stcb wants to merge 16 commits from addCallpageUI into dev
Showing only changes of commit da0c5d1991 - Show all commits

View File

@ -151,11 +151,7 @@ class MainActivity : FlutterActivity() {
private fun getCallLogs(): List<Map<String, Any?>> { private fun getCallLogs(): List<Map<String, Any?>> {
val logsList = mutableListOf<Map<String, Any?>>() val logsList = mutableListOf<Map<String, Any?>>()
val cursor: Cursor? = contentResolver.query( val cursor: Cursor? = contentResolver.query(
CallLog.Calls.CONTENT_URI, CallLog.Calls.CONTENT_URI, null, null, null, CallLog.Calls.DATE + " DESC"
null,
null,
null,
CallLog.Calls.DATE + " DESC"
) )
cursor?.use { cursor?.use {
while (it.moveToNext()) { while (it.moveToNext()) {