Run start service on foreground

This commit is contained in:
M66B
2021-03-25 09:36:45 +01:00
parent a2f78423df
commit f7a85deeec
18 changed files with 263 additions and 114 deletions

View File

@@ -229,7 +229,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("background_service", checked).apply();
ServiceSynchronize.eval(getContext(), "background=" + checked);
ServiceSynchronize.eval(compoundButton.getContext(), "background=" + checked);
}
});