Repository navigation
fix(call): keep call notification when screen turns off - #7047
Open
AndreiGorelov wants to merge 1 commit into
Open
AndreiGorelov wants to merge 1 commit into
AndreiGorelov wants to merge 1 commit into
Conversation
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>
Collaborator
|
Thank you @AndreiGorelov |
Collaborator
|
Hi, the PR is not forgotten, we will review soon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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:
🖼️ Screenshots
Not applicable (no UI change).
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)