Small fix

This commit is contained in:
M66B 2019-06-26 08:57:50 +02:00
parent bd12f769c9
commit 6920dc0aaa
1 changed files with 3 additions and 2 deletions

View File

@ -231,8 +231,6 @@ public class FragmentFolder extends FragmentBase {
boolean should = args.getBoolean("should"); boolean should = args.getBoolean("should");
if (TextUtils.isEmpty(display) || display.equals(name))
display = null;
int sync_days = (TextUtils.isEmpty(sync) ? EntityFolder.DEFAULT_SYNC : Integer.parseInt(sync)); int sync_days = (TextUtils.isEmpty(sync) ? EntityFolder.DEFAULT_SYNC : Integer.parseInt(sync));
int keep_days = (TextUtils.isEmpty(keep) ? EntityFolder.DEFAULT_KEEP : Integer.parseInt(keep)); int keep_days = (TextUtils.isEmpty(keep) ? EntityFolder.DEFAULT_KEEP : Integer.parseInt(keep));
if (keep_days < sync_days) if (keep_days < sync_days)
@ -275,6 +273,9 @@ public class FragmentFolder extends FragmentBase {
return false; return false;
} }
if (TextUtils.isEmpty(display) || display.equals(name))
display = null;
if (folder == null) { if (folder == null) {
reload = true; reload = true;
Log.i("Creating folder=" + name + " parent=" + parent); Log.i("Creating folder=" + name + " parent=" + parent);