|
|
|
@ -994,6 +994,9 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void onActionDiscard() {
|
|
|
|
|
if (isEmpty())
|
|
|
|
|
onAction(R.id.action_delete);
|
|
|
|
|
else {
|
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
|
args.putString("question", getString(R.string.title_ask_discard));
|
|
|
|
|
|
|
|
|
@ -1002,6 +1005,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
fragment.setTargetFragment(this, REQUEST_DISCARD);
|
|
|
|
|
fragment.show(getFragmentManager(), "compose:discard");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void onActionSend() {
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
|
|
|
|