Synchroneous service stop

This commit is contained in:
M66B
2018-08-14 11:08:28 +00:00
parent 2f2dabe919
commit 1e1022a147
4 changed files with 97 additions and 20 deletions

View File

@@ -77,6 +77,8 @@ public class FragmentFolder extends FragmentEx {
@Override
protected Void onLoad(Context context, Bundle args) {
try {
ServiceSynchronize.stopSynchroneous(getContext(), "save folder");
long id = args.getLong("id");
boolean synchronize = args.getBoolean("synchronize");
String after = args.getString("after");
@@ -99,7 +101,7 @@ public class FragmentFolder extends FragmentEx {
return null;
} finally {
ServiceSynchronize.restart(getContext(), "folder");
ServiceSynchronize.start(getContext());
}
}