|
|
@ -352,6 +352,7 @@ public class FragmentCompose extends FragmentEx {
|
|
|
|
super.onActivityCreated(savedInstanceState);
|
|
|
|
super.onActivityCreated(savedInstanceState);
|
|
|
|
|
|
|
|
|
|
|
|
if (savedInstanceState == null) {
|
|
|
|
if (savedInstanceState == null) {
|
|
|
|
|
|
|
|
if (working < 0) {
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
args.putString("action", getArguments().getString("action"));
|
|
|
|
args.putString("action", getArguments().getString("action"));
|
|
|
|
args.putLong("id", getArguments().getLong("id", -1));
|
|
|
|
args.putLong("id", getArguments().getLong("id", -1));
|
|
|
@ -365,6 +366,15 @@ public class FragmentCompose extends FragmentEx {
|
|
|
|
args.putString("body", getArguments().getString("body"));
|
|
|
|
args.putString("body", getArguments().getString("body"));
|
|
|
|
args.putParcelableArrayList("attachments", getArguments().getParcelableArrayList("attachments"));
|
|
|
|
args.putParcelableArrayList("attachments", getArguments().getParcelableArrayList("attachments"));
|
|
|
|
draftLoader.load(this, args);
|
|
|
|
draftLoader.load(this, args);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
|
|
|
|
args.putString("action", "edit");
|
|
|
|
|
|
|
|
args.putLong("id", working);
|
|
|
|
|
|
|
|
args.putLong("account", -1);
|
|
|
|
|
|
|
|
args.putLong("reference", -1);
|
|
|
|
|
|
|
|
args.putLong("answer", -1);
|
|
|
|
|
|
|
|
draftLoader.load(this, args);
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
encrypted = savedInstanceState.getString("encrypted");
|
|
|
|
encrypted = savedInstanceState.getString("encrypted");
|
|
|
|
|
|
|
|
|
|
|
|