diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt
index b342019df..3eb5c1fdb 100644
--- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt
@@ -115,8 +115,6 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.save_as -> crop_image_view.getCroppedImageAsync()
- R.id.flip_horizontally -> flipImage(true)
- R.id.flip_vertically -> flipImage(false)
R.id.edit -> editWith()
else -> return super.onOptionsItemSelected(item)
}
@@ -132,6 +130,14 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
bottom_resize.setOnClickListener {
resizeImage()
}
+
+ bottom_flip_horizontally.setOnClickListener {
+ crop_image_view.flipImageHorizontally()
+ }
+
+ bottom_flip_vertically.setOnClickListener {
+ crop_image_view.flipImageVertically()
+ }
}
private fun resizeImage() {
@@ -258,14 +264,6 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
out.close()
}
- private fun flipImage(horizontally: Boolean) {
- if (horizontally) {
- crop_image_view.flipImageHorizontally()
- } else {
- crop_image_view.flipImageVertically()
- }
- }
-
private fun editWith() {
openEditor(uri.toString())
isEditingWithThirdParty = true
diff --git a/app/src/main/res/drawable-hdpi/ic_flip.png b/app/src/main/res/drawable-hdpi/ic_flip_horizontally.png
similarity index 100%
rename from app/src/main/res/drawable-hdpi/ic_flip.png
rename to app/src/main/res/drawable-hdpi/ic_flip_horizontally.png
diff --git a/app/src/main/res/drawable-hdpi/ic_flip_vertically.png b/app/src/main/res/drawable-hdpi/ic_flip_vertically.png
new file mode 100644
index 000000000..eff105482
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_flip_vertically.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_flip.png b/app/src/main/res/drawable-xhdpi/ic_flip_horizontally.png
similarity index 100%
rename from app/src/main/res/drawable-xhdpi/ic_flip.png
rename to app/src/main/res/drawable-xhdpi/ic_flip_horizontally.png
diff --git a/app/src/main/res/drawable-xhdpi/ic_flip_vertically.png b/app/src/main/res/drawable-xhdpi/ic_flip_vertically.png
new file mode 100644
index 000000000..4e9647fa9
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_flip_vertically.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_flip.png b/app/src/main/res/drawable-xxhdpi/ic_flip_horizontally.png
similarity index 100%
rename from app/src/main/res/drawable-xxhdpi/ic_flip.png
rename to app/src/main/res/drawable-xxhdpi/ic_flip_horizontally.png
diff --git a/app/src/main/res/drawable-xxhdpi/ic_flip_vertically.png b/app/src/main/res/drawable-xxhdpi/ic_flip_vertically.png
new file mode 100644
index 000000000..45a93784f
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_flip_vertically.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_flip.png b/app/src/main/res/drawable-xxxhdpi/ic_flip_horizontally.png
similarity index 100%
rename from app/src/main/res/drawable-xxxhdpi/ic_flip.png
rename to app/src/main/res/drawable-xxxhdpi/ic_flip_horizontally.png
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_flip_vertically.png b/app/src/main/res/drawable-xxxhdpi/ic_flip_vertically.png
new file mode 100644
index 000000000..0053524c4
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_flip_vertically.png differ
diff --git a/app/src/main/res/layout/bottom_editor_actions.xml b/app/src/main/res/layout/bottom_editor_actions.xml
index 901fb5cc2..7ffe42837 100644
--- a/app/src/main/res/layout/bottom_editor_actions.xml
+++ b/app/src/main/res/layout/bottom_editor_actions.xml
@@ -27,19 +27,30 @@
android:layout_height="wrap_content"
android:padding="@dimen/medium_margin"
android:src="@drawable/ic_minimize"
- app:layout_constraintEnd_toStartOf="@+id/bottom_flip"
+ app:layout_constraintEnd_toStartOf="@+id/bottom_flip_horizontally"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/bottom_rotate"/>
+
+
diff --git a/app/src/main/res/menu/menu_editor.xml b/app/src/main/res/menu/menu_editor.xml
index b0e2ad6c9..b72316342 100644
--- a/app/src/main/res/menu/menu_editor.xml
+++ b/app/src/main/res/menu/menu_editor.xml
@@ -5,23 +5,10 @@
android:id="@+id/save_as"
android:icon="@drawable/ic_check"
android:title="@string/save_as"
- app:showAsAction="always"/>
- -
-
-
+ app:showAsAction="ifRoom"/>
+ app:showAsAction="ifRoom"/>