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

Notify when storage is 75% and when it is full. #412

Closed
wants to merge 12 commits into from

Conversation

this-Aditya
Copy link
Member

@this-Aditya this-Aditya commented Apr 4, 2023

Hi,
Please review the attached pull request and provide your feedback.
Thanks

@this-Aditya
Copy link
Member Author

fixes issue #141

@this-Aditya
Copy link
Member Author

@this-Aditya this-Aditya marked this pull request as ready for review April 5, 2023 20:08
@@ -123,6 +126,30 @@ abstract class SourceService<T : BaseSourceState> : LifecycleService(), SourceSt
sourceTypes = emptySet()
broadcaster = LocalBroadcastManager.getInstance(this)

broadcaster.run{
Copy link
Member

Choose a reason for hiding this comment

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

The intention here is good, but it's probably better put in RadarService -- only one notification should run at a time and probably the most urgent one (full) should be shown. In DataHandler you could keep a whole list of storageReceiver, one per DataCache, and if at least ONE of them becomes full, show a full notification. Otherwise, if at least ONE of them becomes partially full, show the other notification.

@this-Aditya
Copy link
Member Author

Hi @blootsvoets is it what you are saying for? Or some other changes are required.

@this-Aditya this-Aditya closed this Oct 2, 2023
@this-Aditya this-Aditya deleted the notify branch May 10, 2024 03:54
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.

2 participants