Skip to content

fix(call): keep call notification when screen turns off - #7047

Open
AndreiGorelov wants to merge 1 commit into
nextcloud:masterfrom
AndreiGorelov:fix/call-notification-cover-closed
Open

AndreiGorelov wants to merge 1 commit into
nextcloud:masterfrom
AndreiGorelov:fix/call-notification-cover-closed

Conversation

@AndreiGorelov

@AndreiGorelov AndreiGorelov commented Nov 14, 2026 •

Copy link
Copy Markdown

Fixes #7046

CallNotificationActivity.onStop() cancelled the call notification unconditionally. With a Samsung Smart View cover closed, the main display goes back to sleep right after the full-screen intent starts the activity, so onStop() fires within milliseconds. The notification (which also provides the ringtone and vibration through its channel) was cancelled and the incoming call was silently dropped.

Cancel the notification only when the user actually leaves the call screen:

  • onUserLeaveHint(): Home, recents, or starting CallActivity
  • onStop() when isFinishing: decline, back, or the notification was already removed

A display turning off no longer dismisses the call notification. Also replace the notificationTimestamp!! assertion with a null-safe call.

Assisted-by: claude-sonnet-5-5

Testing

Tested manually on Samsung Galaxy S24 Ultra (Android 16) with the Smart View Wallet Case:

  • cover closed: incoming call rings and vibrates, the call screen is available after opening the cover
  • accept (audio/video) and decline: notification is dismissed
  • Home / Back / screen lock during an incoming call

🖼️ Screenshots

Not applicable (no UI change).

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

CallNotificationActivity.onStop() cancelled the call notification
unconditionally. With a Samsung Smart View cover closed, the main
display goes back to sleep right after the full-screen intent starts
the activity, so onStop() fires within milliseconds. The notification
(which also provides the ringtone and vibration through its channel)
was cancelled and the incoming call was silently dropped.

Cancel the notification only when the user actually leaves the call
screen:
- onUserLeaveHint(): Home, recents, or starting CallActivity
- onStop() when isFinishing: decline, back, or the notification was
  already removed

A display turning off no longer dismisses the call notification.
Also replace the notificationTimestamp!! assertion with a null-safe
call.

Refs nextcloud#7046

Signed-off-by: Andrei Gorelov <25506529+AndreiGorelov@users.noreply.github.com>
@mahibi

mahibi commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Thank you @AndreiGorelov
We will have a closer look soon

@mahibi

mahibi commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Hi, the PR is not forgotten, we will review soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incoming call is silent when Samsung Smart View cover is closed (CallNotificationActivity stopped immediately, notification cancelled)

2 participants