|
|
@ -994,13 +994,17 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onActionDiscard() {
|
|
|
|
private void onActionDiscard() {
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
if (isEmpty())
|
|
|
|
args.putString("question", getString(R.string.title_ask_discard));
|
|
|
|
onAction(R.id.action_delete);
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
|
|
|
|
args.putString("question", getString(R.string.title_ask_discard));
|
|
|
|
|
|
|
|
|
|
|
|
FragmentDialogAsk fragment = new FragmentDialogAsk();
|
|
|
|
FragmentDialogAsk fragment = new FragmentDialogAsk();
|
|
|
|
fragment.setArguments(args);
|
|
|
|
fragment.setArguments(args);
|
|
|
|
fragment.setTargetFragment(this, REQUEST_DISCARD);
|
|
|
|
fragment.setTargetFragment(this, REQUEST_DISCARD);
|
|
|
|
fragment.show(getFragmentManager(), "compose:discard");
|
|
|
|
fragment.show(getFragmentManager(), "compose:discard");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onActionSend() {
|
|
|
|
private void onActionSend() {
|
|
|
|