Repository navigation
Clickable favourite icon in note info - #3434
daniele-verducci wants to merge 2 commits into
Conversation
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…ne behaving like the other note change methods Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | -6 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
📱 QA build
The QA build installs alongside a released Nextcloud app, so you can keep Downloading the file requires a GitHub account, so open this link on the |
|
|
||
| private fun setHeaderListeners() { | ||
| binding.favorite.setOnClickListener { | ||
| repo.toggleFavorite(account, note.id) |
There was a problem hiding this comment.
toggleFavorite isn't this async function thus next line cannot be always have the latest state?
There was a problem hiding this comment.
Yes, but the following line does toggle the favourite, so "aligns" the state with the db
There was a problem hiding this comment.
@alperozturk96 suggestions on how to improve?
In the activities PR I brought to Notes the file details screen like already present in Files. But it's missing some features, like the toggleable favorite icon.
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)