Fixed auto move

This commit is contained in:
M66B 2019-07-02 08:57:20 +02:00
parent 34b2a0583e
commit 3b718aad63
2 changed files with 8 additions and 2 deletions

View File

@ -547,7 +547,7 @@ public class FragmentCompose extends FragmentBase {
} }
private void onReferenceEdit() { private void onReferenceEdit() {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
if (prefs.getBoolean("edit_ref_confirmed", false)) { if (prefs.getBoolean("edit_ref_confirmed", false)) {
onReferenceEditConfirmed(); onReferenceEditConfirmed();
return; return;
@ -996,7 +996,7 @@ public class FragmentCompose extends FragmentBase {
} }
private void onActionSend() { private void onActionSend() {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean autosend = prefs.getBoolean("autosend", false); boolean autosend = prefs.getBoolean("autosend", false);
if (autosend) { if (autosend) {
onActionSendConfirmed(); onActionSendConfirmed();

View File

@ -3002,6 +3002,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (result.size() == 0) if (result.size() == 0)
return; return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
if (prefs.getBoolean("automove", false)) {
moveAskConfirmed(result);
return;
}
Bundle aargs = new Bundle(); Bundle aargs = new Bundle();
aargs.putString("question", getResources() aargs.putString("question", getResources()
.getQuantityString(R.plurals.title_moving_messages, .getQuantityString(R.plurals.title_moving_messages,