Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcebf67c authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

🐞 Fix #1541 Favorite star in menu not clickable

parent 7f5842ce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
- 📱️ 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
 No newline at end of file