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() {

View file

@ -11,4 +11,9 @@
android:icon="@drawable/ic_edit"
android:title="@string/edit_with"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/share"
android:icon="@drawable/ic_share"
android:title="@string/share"
app:showAsAction="ifRoom"/>
</menu>