From 7096f66504897749bc1237567d03ac15c879c8e8 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 7 May 2021 21:23:46 +0200 Subject: [PATCH] Reorder style menu --- .../java/eu/faircode/email/StyleHelper.java | 4 ++-- app/src/main/res/menu/popup_style.xml | 24 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/StyleHelper.java b/app/src/main/java/eu/faircode/email/StyleHelper.java index 2a74617daa..f033eb62f1 100644 --- a/app/src/main/java/eu/faircode/email/StyleHelper.java +++ b/app/src/main/java/eu/faircode/email/StyleHelper.java @@ -142,6 +142,8 @@ public class StyleHelper { return setSize(item); } else if (groupId == R.id.group_style_color) { return setColor(item); + } else if (groupId == R.id.group_style_font) { + return setFont(item); } else if (groupId == R.id.group_style_align) { return setAlignment(item); } else if (groupId == R.id.group_style_list) { @@ -150,8 +152,6 @@ public class StyleHelper { return setListLevel(item); else return setList(item); - } else if (groupId == R.id.group_style_font) { - return setFont(item); } else if (groupId == R.id.group_style_blockquote) { return setBlockQuote(item); } else if (groupId == R.id.group_style_strikethrough) { diff --git a/app/src/main/res/menu/popup_style.xml b/app/src/main/res/menu/popup_style.xml index a148d33774..8d10bf7a2f 100644 --- a/app/src/main/res/menu/popup_style.xml +++ b/app/src/main/res/menu/popup_style.xml @@ -31,10 +31,20 @@ android:title="@string/title_style_color" /> + + + + + + @@ -59,7 +69,7 @@ @@ -83,16 +93,6 @@ - - - - - -