|
|
@ -1909,6 +1909,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
if (state == State.LOADED) {
|
|
|
|
if (state == State.LOADED) {
|
|
|
|
Bundle extras = new Bundle();
|
|
|
|
Bundle extras = new Bundle();
|
|
|
|
extras.putBoolean("autosave", true);
|
|
|
|
extras.putBoolean("autosave", true);
|
|
|
|
|
|
|
|
extras.putBoolean("paused", true);
|
|
|
|
onAction(R.id.action_save, extras, "pause");
|
|
|
|
onAction(R.id.action_save, extras, "pause");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -7836,12 +7837,13 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
} else if (action == R.id.action_save) {
|
|
|
|
} else if (action == R.id.action_save) {
|
|
|
|
boolean autosave = extras.getBoolean("autosave");
|
|
|
|
boolean autosave = extras.getBoolean("autosave");
|
|
|
|
|
|
|
|
boolean paused = extras.getBoolean("paused");
|
|
|
|
boolean silent = extras.getBoolean("silent");
|
|
|
|
boolean silent = extras.getBoolean("silent");
|
|
|
|
boolean finish = extras.getBoolean("finish");
|
|
|
|
boolean finish = extras.getBoolean("finish");
|
|
|
|
|
|
|
|
|
|
|
|
if (finish)
|
|
|
|
if (finish)
|
|
|
|
finish();
|
|
|
|
finish();
|
|
|
|
else if (!autosave && !silent)
|
|
|
|
else if (paused || (!autosave && !silent))
|
|
|
|
setFocus(
|
|
|
|
setFocus(
|
|
|
|
args.getInt("focus"),
|
|
|
|
args.getInt("focus"),
|
|
|
|
args.getInt("start", -1),
|
|
|
|
args.getInt("start", -1),
|
|
|
|