Moved encrypt to menu

This commit is contained in:
M66B
2018-10-28 17:16:25 +00:00
parent 435a73fcab
commit e31b3967f3
4 changed files with 13 additions and 9 deletions

View File

@@ -423,6 +423,9 @@ public class FragmentCompose extends FragmentEx {
case R.id.menu_addresses:
onMenuAddresses();
return true;
case R.id.menu_encrypt:
onAction(R.id.menu_encrypt);
return true;
default:
return super.onOptionsItemSelected(item);
}
@@ -1371,7 +1374,7 @@ public class FragmentCompose extends FragmentEx {
Toast.makeText(context, R.string.title_draft_deleted, Toast.LENGTH_LONG).show();
}
});
} else if (action == R.id.action_save || action == R.id.action_encrypt) {
} else if (action == R.id.action_save || action == R.id.menu_encrypt) {
db.message().updateMessage(draft);
draft.write(context, body);
@@ -1462,7 +1465,7 @@ public class FragmentCompose extends FragmentEx {
} else if (action == R.id.action_save) {
// Do nothing
} else if (action == R.id.action_encrypt) {
} else if (action == R.id.menu_encrypt) {
onEncrypt();
} else if (action == R.id.action_send) {