diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b2dfbdf3c8..646b4b8f06 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -22,6 +22,9 @@ + resize) factor *= 2; + Log.i("Image type=" + attachment.type + " rotation=" + getImageRotation(file)); Matrix rotation = ("image/jpeg".equals(attachment.type) ? getImageRotation(file) : null); if (factor > 1 || rotation != null) { diff --git a/app/src/main/res/drawable/baseline_photo_camera_24.xml b/app/src/main/res/drawable/baseline_photo_camera_24.xml new file mode 100644 index 0000000000..f195b279ad --- /dev/null +++ b/app/src/main/res/drawable/baseline_photo_camera_24.xml @@ -0,0 +1,13 @@ + + + + diff --git a/app/src/main/res/drawable/baseline_record_voice_over_24.xml b/app/src/main/res/drawable/baseline_record_voice_over_24.xml new file mode 100644 index 0000000000..a05a65e7aa --- /dev/null +++ b/app/src/main/res/drawable/baseline_record_voice_over_24.xml @@ -0,0 +1,13 @@ + + + + diff --git a/app/src/main/res/menu/action_edit.xml b/app/src/main/res/menu/action_edit.xml index 02291e3f6f..dd258717c2 100644 --- a/app/src/main/res/menu/action_edit.xml +++ b/app/src/main/res/menu/action_edit.xml @@ -1,9 +1,14 @@ + android:id="@+id/menu_record_audio" + android:icon="@drawable/baseline_record_voice_over_24" + android:title="@string/title_attachment_audio" /> + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f401467a70..343c275926 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -461,6 +461,9 @@ Insert image Style toolbar Add attachment + Attach file + Take photo + Record audio Show CC/BCC Insert contact group Insert template diff --git a/app/src/main/res/xml/fileprovider_paths.xml b/app/src/main/res/xml/fileprovider_paths.xml index 1f67db1e2f..4bdb13c2f1 100644 --- a/app/src/main/res/xml/fileprovider_paths.xml +++ b/app/src/main/res/xml/fileprovider_paths.xml @@ -6,4 +6,7 @@ +