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

Disappear when no more notifications #103

Merged
merged 2 commits into from
May 31, 2024

Conversation

rlees85
Copy link
Contributor

@rlees85 rlees85 commented May 14, 2024

Fixes: #85 (sort-of)

See in particular this comment: #85 (comment)

This is work in progress and it should probably be put behind a setting. Feel free to commit to this PR or to clone it and carry on. I will however try and get round do it and finish it off but as said before Android development isn't a strong point of mine.

Also the commit history is fairly bad as I had fun rebasing from the new "main" branch so it will want squashing when merging!

@rlees85 rlees85 force-pushed the notification_empty branch 2 times, most recently from 25f4cea to 0e3d3aa Compare May 14, 2024 21:29
@rlees85 rlees85 changed the title [WIP] Disappear when no more notifications Disappear when no more notifications May 17, 2024
@rlees85
Copy link
Contributor Author

rlees85 commented May 17, 2024

I think this is about as far as I can take it. Please do suggest any improvements. The toggle seems to work. I'd also like to change the icon to the bell with maybe a cross in it or something but I don't know where you got your icon set from.

@Domi04151309
Copy link
Owner

The icons are from here https://fonts.google.com/icons?icon.set=Material+Symbols&icon.size=24&icon.color=%23e8eaed&icon.style=Rounded. Your changes look good, however I was thinking about making stopping at zero notifications the default behavior for ambient mode and not make it toggleable. What do you think about that?

@rlees85
Copy link
Contributor Author

rlees85 commented May 19, 2024

The icons are from here https://fonts.google.com/icons?icon.set=Material+Symbols&icon.size=24&icon.color=%23e8eaed&icon.style=Rounded. Your changes look good, however I was thinking about making stopping at zero notifications the default behavior for ambient mode and not make it toggleable. What do you think about that?

It would be fine by me honestly. Its just the screen lighting up behaviour when the AOD gets dismissed some people might find a bit weird but honestly so is keeping the AOD when there are no notifications left.

More than happy to remove the setting preference however.

@rlees85
Copy link
Contributor Author

rlees85 commented May 23, 2024

Updated PR

@Domi04151309 Domi04151309 merged commit af608b3 into Domi04151309:main May 31, 2024
5 checks passed
@rlees85 rlees85 deleted the notification_empty branch June 3, 2024 13:11
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.

[Feature Request] Stop AOD when there are no more notifications in Ambient mode
2 participants