Browse Source

Fixed reload

main
M66B 6 years ago
parent
commit
b9ef1ec8f9
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 4
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -1583,14 +1583,12 @@ public class ServiceSynchronize extends LifecycleService {
}
public static void start(Context context) {
ContextCompat.startForegroundService(context,
new Intent(context, ServiceSynchronize.class));
ContextCompat.startForegroundService(context, new Intent(context, ServiceSynchronize.class));
}
public static void reload(Context context, String reason) {
Log.i(Helper.TAG, "Reload because of '" + reason + "'");
ContextCompat.startForegroundService(context,
new Intent(context, ServiceSynchronize.class).setAction("reload"));
context.startService(new Intent(context, ServiceSynchronize.class).setAction("reload"));
}
private class ServiceState {


Loading…
Cancel
Save