adding a Share button to the editor for sharing directly without saving

This commit is contained in:
tibbi
2019-01-14 14:03:38 +01:00
parent b2686a3097
commit 2e3a8cb658
2 changed files with 10 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
when (item.itemId) {
R.id.save_as -> saveImage()
R.id.edit -> editWith()
R.id.share -> shareImage()
else -> return super.onOptionsItemSelected(item)
}
return true
@ -332,6 +333,10 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
}
}
private fun shareImage() {
}
private fun getFiltersAdapter() = bottom_actions_filter_list.adapter as? FiltersAdapter
private fun setupBottomActions() {