Skip to content

Commit

Permalink
Fix call notification answer button handling
Browse files Browse the repository at this point in the history
  • Loading branch information
valldrac committed Sep 13, 2023
1 parent 0b4efa7 commit 965a62f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public void onBackPressed() {

@Override
protected void onAuthenticationCancel() {
onBackPressed();
super.onBackPressed();
}

private boolean enterPipModeIfPossible() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,14 @@ private static PendingIntent getActivityPendingIntent(@NonNull Context context,
intent.setAction(launchCallScreenIntentState.action);

if (launchCallScreenIntentState == LaunchCallScreenIntentState.CONTENT) {
// MOLLY: Set a non-empty action to clear any pending action held by the screen lock
intent.setAction(WebRtcCallActivity.NO_ACTION);
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
}

intent.putExtra(WebRtcCallActivity.EXTRA_STARTED_FROM_FULLSCREEN, launchCallScreenIntentState == LaunchCallScreenIntentState.CONTENT);
intent.putExtra(WebRtcCallActivity.EXTRA_ENABLE_VIDEO_IF_AVAILABLE, false);

// MOLLY: Set a non-empty action to clear any pending action held by the screen lock
intent.setAction(WebRtcCallActivity.NO_ACTION);

return PendingIntent.getActivity(context, launchCallScreenIntentState.requestCode, intent, PendingIntentFlags.updateCurrent());
}

Expand Down

0 comments on commit 965a62f

Please sign in to comment.