Sync without reset

This commit is contained in:
M66B 2019-04-12 09:03:10 +02:00
parent f9880b5a0d
commit 9b0434a8e2
3 changed files with 3 additions and 9 deletions

View File

@ -456,10 +456,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
db.endTransaction();
}
if (!now) {
ServiceSynchronize.reset(context);
if (!now)
throw new IllegalArgumentException(context.getString(R.string.title_no_connection));
}
return null;
}

View File

@ -350,10 +350,8 @@ public class FragmentFolders extends FragmentBase {
db.endTransaction();
}
if (!now) {
ServiceSynchronize.reset(context);
if (!now)
throw new IllegalArgumentException(context.getString(R.string.title_no_connection));
}
return null;
}

View File

@ -660,10 +660,8 @@ public class FragmentMessages extends FragmentBase {
db.endTransaction();
}
if (!now) {
ServiceSynchronize.reset(context);
if (!now)
throw new IllegalArgumentException(context.getString(R.string.title_no_connection));
}
return null;
}