mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
add a Save as button to the editor
This commit is contained in:
@ -52,17 +52,25 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||
}
|
||||
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
when (item.itemId) {
|
||||
return when (item.itemId) {
|
||||
R.id.save -> {
|
||||
crop_image_view.getCroppedImageAsync()
|
||||
return true
|
||||
true
|
||||
}
|
||||
R.id.rotate -> {
|
||||
crop_image_view.rotateImage(90)
|
||||
return true
|
||||
true
|
||||
}
|
||||
R.id.save_as -> {
|
||||
saveAs()
|
||||
true
|
||||
}
|
||||
else -> super.onOptionsItemSelected(item)
|
||||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
|
||||
private fun saveAs() {
|
||||
|
||||
}
|
||||
|
||||
override fun onCropImageComplete(view: CropImageView, result: CropImageView.CropResult) {
|
||||
|
Reference in New Issue
Block a user