diff --git a/app/src/main/java/eu/faircode/email/StyleHelper.java b/app/src/main/java/eu/faircode/email/StyleHelper.java
index 35e09c2da5..78d96644cc 100644
--- a/app/src/main/java/eu/faircode/email/StyleHelper.java
+++ b/app/src/main/java/eu/faircode/email/StyleHelper.java
@@ -214,6 +214,7 @@ public class StyleHelper {
popupMenu.getMenu().findItem(R.id.menu_style_indentation_decrease).setEnabled(indents.length > 0);
popupMenu.getMenu().findItem(R.id.menu_style_parenthesis).setEnabled(BuildConfig.DEBUG);
+ popupMenu.getMenu().findItem(R.id.menu_style_quotes).setEnabled(BuildConfig.DEBUG);
popupMenu.getMenu().findItem(R.id.menu_style_code).setEnabled(BuildConfig.DEBUG);
popupMenu.insertIcons(context);
@@ -250,7 +251,9 @@ public class StyleHelper {
} else if (groupId == R.id.group_style_strikethrough) {
return setStrikeThrough(item);
} else if (groupId == R.id.group_style_parenthesis) {
- return setParenthesis(item);
+ return surround(item, "(", ")");
+ } else if (groupId == R.id.group_style_quotes) {
+ return surround(item, "\"", "\"");
} else if (groupId == R.id.group_style_code) {
return setCode(item);
} else if (groupId == R.id.group_style_clear) {
@@ -492,10 +495,10 @@ public class StyleHelper {
return true;
}
- private boolean setParenthesis(MenuItem item) {
+ private boolean surround(MenuItem item, String before, String after) {
Log.breadcrumb("style", "action", "parenthesis");
- edit.insert(end, ")");
- edit.insert(start, "(");
+ edit.insert(end, after);
+ edit.insert(start, before);
return true;
}
diff --git a/app/src/main/res/drawable/twotone_horizontal_distribute_24.xml b/app/src/main/res/drawable/twotone_horizontal_distribute_24.xml
new file mode 100644
index 0000000000..eb2e40aded
--- /dev/null
+++ b/app/src/main/res/drawable/twotone_horizontal_distribute_24.xml
@@ -0,0 +1,10 @@
+
+
+
diff --git a/app/src/main/res/menu/popup_style.xml b/app/src/main/res/menu/popup_style.xml
index 8b79eeb417..f4f697e7be 100644
--- a/app/src/main/res/menu/popup_style.xml
+++ b/app/src/main/res/menu/popup_style.xml
@@ -168,9 +168,18 @@
android:title="@string/title_style_parenthesis" />
+
+
+
+
+ android:orderInCategory="13">
-
+ android:orderInCategory="14">
- Highlight
Strikethrough
Parenthesis
+ Quotes
Code
Clear formatting
Insert link