mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Account commands, service wakeup
This commit is contained in:
@@ -172,7 +172,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("sync_unseen", checked).apply();
|
||||
ServiceSynchronize.reload(getContext(), -1, "sync_unseen=" + checked);
|
||||
ServiceSynchronize.reload(getContext(), null, "sync_unseen=" + checked);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -180,7 +180,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("sync_flagged", checked).apply();
|
||||
ServiceSynchronize.reload(getContext(), -1, "sync_flagged=" + checked);
|
||||
ServiceSynchronize.reload(getContext(), null, "sync_flagged=" + checked);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -188,7 +188,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("delete_unseen", checked).apply();
|
||||
ServiceSynchronize.reload(getContext(), -1, "delete_unseen=" + checked);
|
||||
ServiceSynchronize.reload(getContext(), null, "delete_unseen=" + checked);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -196,7 +196,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("sync_kept", checked).apply();
|
||||
ServiceSynchronize.reload(getContext(), -1, "sync_kept=" + checked);
|
||||
ServiceSynchronize.reload(getContext(), null, "sync_kept=" + checked);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -204,7 +204,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("sync_folders", checked).apply();
|
||||
ServiceSynchronize.reload(getContext(), -1, "sync_folders=" + checked);
|
||||
ServiceSynchronize.reload(getContext(), null, "sync_folders=" + checked);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -221,7 +221,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("subscribed_only", checked).apply();
|
||||
ServiceSynchronize.reload(getContext(), -1, "subscribed_only");
|
||||
ServiceSynchronize.reload(getContext(), null, "subscribed_only");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user