Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix notification reappearing when service was stopped #833

Closed
wants to merge 1 commit into from

Conversation

nt4f04uNd
Copy link
Contributor

Fixes #690

@nt4f04uNd nt4f04uNd force-pushed the notification-reappear branch 2 times, most recently from c374764 to d090ee4 Compare September 29, 2021 12:39
@nt4f04uNd nt4f04uNd force-pushed the notification-reappear branch from d090ee4 to 5f63e3f Compare September 29, 2021 16:08
@@ -286,6 +286,7 @@ public int onStartCommand(final Intent intent, int flags, int startId) {
}

public void stop() {
notificationCreated = false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering whether it would be best to consider androidResumeOnClick here, which is currently used to pass in the argument to stopForeground.

Copy link
Contributor Author

@nt4f04uNd nt4f04uNd Oct 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the current moment androidResumeOnClick doesn't seem to do anything, i.e. this line is not doing anything, because the notification still gets deleted anyway on this line

This should be tracked by #638 and #701, but I think making it !androidResumeOnClick is what we want, yes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you point out the expected behavior of androidResumeOnClick that you want it to have, since it's not documented and makes it hard for me to actually judge what's needed here.

@nt4f04uNd nt4f04uNd marked this pull request as draft October 12, 2021 15:44
@nt4f04uNd
Copy link
Contributor Author

Marking as draft, because it's better to address #638 first

@nt4f04uNd
Copy link
Contributor Author

Closing because this doesn't make much sense as is and we have an ongoing discussion regarding notification in #847

@nt4f04uNd nt4f04uNd closed this Oct 14, 2021
@nt4f04uNd nt4f04uNd deleted the notification-reappear branch October 14, 2021 15:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notification shouldn't reappear when service is stopped
2 participants