mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
fix: launch CallActivity when call is picked from notification
- add CallActivity.getStartIntent method to get the start intent for CallActivity and update in CallNotificationManager and CallService where the CallActivity is started - in CallActionReceiver, start the CallActivity before answering the call
This commit is contained in:
@ -39,8 +39,7 @@ class CallNotificationManager(private val context: Context) {
|
||||
}
|
||||
}
|
||||
|
||||
val openAppIntent = Intent(context, CallActivity::class.java)
|
||||
openAppIntent.flags = Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT
|
||||
val openAppIntent = CallActivity.getStartIntent(context)
|
||||
val openAppPendingIntent = PendingIntent.getActivity(context, 0, openAppIntent, 0)
|
||||
|
||||
val acceptCallIntent = Intent(context, CallActionReceiver::class.java)
|
||||
|
Reference in New Issue
Block a user