Improved color style menu

This commit is contained in:
M66B
2021-06-20 14:45:56 +02:00
parent 2e76898655
commit 80a2f93959
3 changed files with 11 additions and 10 deletions

View File

@@ -178,9 +178,10 @@ public class StyleHelper {
public boolean onMenuItemClick(MenuItem item) {
try {
int groupId = item.getGroupId();
int itemId = item.getItemId();
if (groupId == R.id.group_style_size) {
return setSize(item);
} else if (groupId == R.id.group_style_color) {
} else if (itemId == R.id.menu_style_color) {
return setColor(item);
} else if (groupId == R.id.group_style_font) {
return setFont(item);