mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
allow using custom aspect ratio at wallpapers
This commit is contained in:
parent
df37488c86
commit
e121a9b72b
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -6,4 +6,8 @@
|
|||
android:icon="@drawable/ic_check_vector"
|
||||
android:title="@string/save"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/allow_changing_aspect_ratio"
|
||||
android:title="@string/allow_changing_aspect_ratio"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
|
|
Loading…
Reference in a new issue