BijoySingh / Scarlet-Notes

[Discontinued and Unsupported Project] Simple yet powerful rich note taking android application, with a lot of flexibilty of usage
https://play.google.com/store/apps/details?id=com.bijoysingh.quicknote
GNU General Public License v3.0
354 stars 94 forks source link

Make main toolbar title and icon reflect the current navigation mode #163

Closed Fs00 closed 3 years ago

Fs00 commented 4 years ago

This PR improves the top toolbar by replacing title and icon with the ones pertaining to the current navigation mode (Archived, Locked, etc. except for Home), so that the user can clearly see which is the current context (in particular when there are no notes). A positive side-effect of this improvement is that there's no more flashing in the UI when the user switches to search mode, since the toolbar has been extracted from the RecyclerView.

Futhermore, now when the user is inside a folder and switches to another navigation mode, the current folder is resetted. This is in general more consistent with the change to back button behavior in #154 and emphasizes the fact that we are switching to a different context.

Finally, I've made some minor tweaks to how coroutines are used (and removed that pesky and useless singleThreadDispatcher).

Here's a video recap of the changes intoduced with this PR: https://streamable.com/l33c3