|
|
@ -228,11 +228,6 @@ public class FragmentFolders extends FragmentBase {
|
|
|
|
args.putLong("account", account);
|
|
|
|
args.putLong("account", account);
|
|
|
|
|
|
|
|
|
|
|
|
new SimpleTask<Boolean>() {
|
|
|
|
new SimpleTask<Boolean>() {
|
|
|
|
@Override
|
|
|
|
|
|
|
|
protected void onPostExecute(Bundle args) {
|
|
|
|
|
|
|
|
swipeRefresh.setRefreshing(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected Boolean onExecute(Context context, Bundle args) {
|
|
|
|
protected Boolean onExecute(Context context, Bundle args) {
|
|
|
|
long aid = args.getLong("account");
|
|
|
|
long aid = args.getLong("account");
|
|
|
@ -296,12 +291,15 @@ public class FragmentFolders extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void onExecuted(Bundle args, Boolean now) {
|
|
|
|
protected void onExecuted(Bundle args, Boolean now) {
|
|
|
|
if (!now)
|
|
|
|
if (!now) {
|
|
|
|
|
|
|
|
swipeRefresh.setRefreshing(false);
|
|
|
|
Snackbar.make(view, R.string.title_sync_delayed, Snackbar.LENGTH_LONG).show();
|
|
|
|
Snackbar.make(view, R.string.title_sync_delayed, Snackbar.LENGTH_LONG).show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void onException(Bundle args, Throwable ex) {
|
|
|
|
protected void onException(Bundle args, Throwable ex) {
|
|
|
|
|
|
|
|
swipeRefresh.setRefreshing(false);
|
|
|
|
if (ex instanceof IllegalArgumentException)
|
|
|
|
if (ex instanceof IllegalArgumentException)
|
|
|
|
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG).show();
|
|
|
|
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG).show();
|
|
|
|
else
|
|
|
|
else
|
|
|
|