feat: Add announcements#2948
Merged
Merged
Conversation
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.
This adds announcement pages: a list of all announcements and a singular announcement. Announcement contents use WebViews to render the text. The list of all announcements was supposed to contain small previews, but truncating WebView texts is tricky, so I left some half-finished code commented out with a TODO label.
The app keeps track of which announcements are read to display unread indicators and notification cards when latest announcements arrive. On first launch, all current announcements are automatically marked as read.
It is also possible to filter announcements based on their tag. By default only ReVanced and manager tags are selected.
This also updates the material3 library to 1.5.0 alpha in order to utilize new flexible topbar APIs.
Here are some screenshots: