mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-21 12:25:57 +03:00
🐞 Fix #1541 Favorite star in menu not clickable
Signed-off-by: Stefan Niedermann <info@niedermann.it>
This commit is contained in:
parent
7f5842ced8
commit
fcebf67c03
2 changed files with 3 additions and 1 deletions
|
@ -201,7 +201,7 @@ public abstract class BaseNoteFragment extends BrandedFragment implements Catego
|
|||
}
|
||||
|
||||
private void prepareFavoriteOption(MenuItem item) {
|
||||
item.setIcon(TRUE.equals(note.getFavorite()) ? R.drawable.ic_star_white_24dp : R.drawable.ic_star_border_white_24dp);
|
||||
item.setIcon(note.getFavorite() ? R.drawable.ic_star_white_24dp : R.drawable.ic_star_border_white_24dp);
|
||||
item.setChecked(note.getFavorite());
|
||||
tintMenuIcon(item, colorAccent);
|
||||
}
|
||||
|
@ -227,6 +227,7 @@ public abstract class BaseNoteFragment extends BrandedFragment implements Catego
|
|||
listener.close();
|
||||
return true;
|
||||
} else if (itemId == R.id.menu_favorite) {
|
||||
note.setFavorite(!note.getFavorite());
|
||||
repo.toggleFavoriteAndSync(localAccount, note.getId());
|
||||
listener.onNoteUpdated(note);
|
||||
prepareFavoriteOption(item);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- 📱️ Add option to not keep screen on (#1531)
|
||||
- 🐞 Favorite star in menu not clickable (#1541)
|
||||
- ⚙️ Add monochrome icon (#1544) - by @salixor
|
||||
- ⚙️ Use the new Android 12 SplashScreen API (#1546) - by @salixor
|
||||
- 🌎 Updated translations
|
Loading…
Reference in a new issue