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).
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