From e121a9b72b6945fbf26a3b56d972bff1d156d366 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 19 Jun 2022 15:41:22 +0200 Subject: [PATCH] allow using custom aspect ratio at wallpapers --- .../gallery/pro/activities/SetWallpaperActivity.kt | 1 + app/src/main/res/menu/menu_set_wallpaper.xml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SetWallpaperActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SetWallpaperActivity.kt index 248fcf6ad..018c7d8fd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SetWallpaperActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SetWallpaperActivity.kt @@ -60,6 +60,7 @@ class SetWallpaperActivity : SimpleActivity(), CropImageView.OnCropImageComplete override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { R.id.save -> confirmWallpaper() + R.id.allow_changing_aspect_ratio -> crop_image_view.clearAspectRatio() else -> return super.onOptionsItemSelected(item) } return true diff --git a/app/src/main/res/menu/menu_set_wallpaper.xml b/app/src/main/res/menu/menu_set_wallpaper.xml index 094f0f745..99353cb70 100644 --- a/app/src/main/res/menu/menu_set_wallpaper.xml +++ b/app/src/main/res/menu/menu_set_wallpaper.xml @@ -6,4 +6,8 @@ android:icon="@drawable/ic_check_vector" android:title="@string/save" app:showAsAction="ifRoom" /> +