-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Add shortcut to "Show only unread articles" in the toolbar #1262
Add shortcut to "Show only unread articles" in the toolbar #1262
Conversation
That was fast! Looks great! Thank you so much! Quick review: Every time you start the app the setting is currently toggled 😅 (since you call the update I'm also wondering if we should hide it in case the user selects the "All unread articles"? The app launches in that screen by default and it is kind of confusing to be in a view "all unread articles" but it gives you the option to toggle "show only unread articles".. |
395f180
to
c70b428
Compare
Whoops! This has been fixed!
My lack of android development and inexperience with the code base is halting me, how do I get the name/id of the current folder? I've also noticed that if "Show only unread articles" is enabled, folders which doesn't have any unread articles are hidden, meaning that if all your folders are all read, switching the to a folder would require going from Another note, I'm afraid that dropping the option from the settings page will confuse users, especially if all folder are read(see previous paragraph), is there a way to notify them? |
@mkanilsson Terrific!
Inside the news-android/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java Line 715 in c70b428
Good point. Maybe we should keep the setting in the Settings page as a fallback? So it would just be a shortcut which would improve the accessibility for this feature..?
Good catch - so the sidebar needs to be updated once the toggle is used |
Bumps com.diffplug.spotless from 6.19.0 to 6.21.0. --- updated-dependencies: - dependency-name: com.diffplug.spotless dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
c70b428
to
07b81d4
Compare
@David-Development Everything's done now!
That commit has been reverted. The option is back in the settings page (as well as in the toolbar).
Funny that I missed it in the file I was working in 😄 I couldn't get it to update the |
@mkanilsson Awesome! Just tested it on my phone and it looks fabulous! I really like the feature! One bug that noticed during testing - when you open a folder or a feed and you click on an article and navigate back, the menu item is missing. |
07b81d4
to
b794dab
Compare
@David-Development Fixed! |
This patch moves "Show only unread articles" to the toolbar, inside the three dots as discussed in nextcloud#1026 Signed-off-by: Marcus Nilsson <marcus.nilsson@genarp.com>
@mkanilsson Looks fantastic to me! Thank you so much! |
This PR adds a shortcut to "Show only unread articles" in the toolbar.
The shortcut isn't visible when "All unread items" and "Starred items" is open, because they ignore that option.
This was discussed in #1026.
Screenshot: