mirror of
https://github.com/M66B/FairEmail.git
synced 2026-02-03 13:35:54 +01:00
Run start service on foreground
This commit is contained in:
@@ -506,11 +506,16 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
DB db = DB.getInstance(context);
|
||||
db.account().setAccountPollExempted(id, exempted);
|
||||
|
||||
ServiceSynchronize.eval(context, "exempted");
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, Void data) {
|
||||
Context context = getContext();
|
||||
if (context != null)
|
||||
ServiceSynchronize.eval(context, "exempted");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
||||
Reference in New Issue
Block a user