Revert "Run start service on foreground"

This reverts commit f7a85deeec.
This commit is contained in:
M66B
2021-03-27 15:50:39 +01:00
parent a5e0d8f086
commit e35cbd0f37
18 changed files with 114 additions and 263 deletions

View File

@@ -608,6 +608,8 @@ public class FragmentOAuth extends FragmentBase {
db.endTransaction();
}
ServiceSynchronize.eval(context, "OAuth");
return null;
}
@@ -615,14 +617,9 @@ public class FragmentOAuth extends FragmentBase {
protected void onExecuted(Bundle args, Void data) {
pbOAuth.setVisibility(View.GONE);
Context context = getContext();
if (context != null)
ServiceSynchronize.eval(context, "OAuth");
if (args.getLong("account") < 0) {
finish();
if (context != null)
ToastEx.makeText(context, R.string.title_setup_oauth_updated, Toast.LENGTH_LONG).show();
ToastEx.makeText(getContext(), R.string.title_setup_oauth_updated, Toast.LENGTH_LONG).show();
} else {
FragmentReview fragment = new FragmentReview();
fragment.setArguments(args);