Small improvement

This commit is contained in:
M66B 2020-02-26 17:36:19 +01:00
parent 07f91927fa
commit 991e35e894
2 changed files with 3 additions and 3 deletions

View File

@ -246,7 +246,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
TupleMatch match = state.matches.get(i);
if (find == null || seen != null || flagged != null || snoozed != null || encrypted != null || attachments!=null)
if (find == null || seen != null || flagged != null || snoozed != null || encrypted != null || attachments != null)
match.matched = true;
else {
if (match.matched == null || !match.matched)
@ -292,7 +292,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
final boolean debug = (prefs.getBoolean("debug", false) || BuildConfig.BETA_RELEASE);
final EntityFolder browsable = db.folder().getBrowsableFolder(folder, query != null);
if (browsable == null)
if (browsable == null || !browsable.selectable)
return 0;
EntityAccount account = db.account().getAccount(browsable.account);

View File

@ -1225,7 +1225,7 @@ class Core {
Folder itarget = istore.getFolder(folder.rename);
ifolder.renameTo(itarget);
if (subscribed)
if (subscribed && folder.selectable)
try {
itarget.open(READ_WRITE);
itarget.setSubscribed(subscribed);