Compare commits
2 Commits
2894dce1bc
...
da0c5d1991
Author | SHA1 | Date | |
---|---|---|---|
da0c5d1991 | |||
3129e51eb4 |
@ -151,11 +151,7 @@ class MainActivity : FlutterActivity() {
|
||||
private fun getCallLogs(): List<Map<String, Any?>> {
|
||||
val logsList = mutableListOf<Map<String, Any?>>()
|
||||
val cursor: Cursor? = contentResolver.query(
|
||||
CallLog.Calls.CONTENT_URI,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
CallLog.Calls.DATE + " DESC"
|
||||
CallLog.Calls.CONTENT_URI, null, null, null, CallLog.Calls.DATE + " DESC"
|
||||
)
|
||||
cursor?.use {
|
||||
while (it.moveToNext()) {
|
||||
|
@ -265,6 +265,18 @@ class _ContactModalState extends State<ContactModal> {
|
||||
await _callService.makeGsmCall(context, phoneNumber: phoneNumber);
|
||||
}
|
||||
},
|
||||
onLongPress: () {
|
||||
// Navigate to the beautiful calling page demo
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (_) => CallPage(
|
||||
displayName: widget.contact.displayName,
|
||||
thumbnail: widget.contact.thumbnail,
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.message, color: Colors.blue),
|
||||
|
Loading…
Reference in New Issue
Block a user