Small improvement

pull/175/head
M66B 6 years ago
parent 07f91927fa
commit 991e35e894

@ -292,7 +292,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
final boolean debug = (prefs.getBoolean("debug", false) || BuildConfig.BETA_RELEASE); final boolean debug = (prefs.getBoolean("debug", false) || BuildConfig.BETA_RELEASE);
final EntityFolder browsable = db.folder().getBrowsableFolder(folder, query != null); final EntityFolder browsable = db.folder().getBrowsableFolder(folder, query != null);
if (browsable == null) if (browsable == null || !browsable.selectable)
return 0; return 0;
EntityAccount account = db.account().getAccount(browsable.account); EntityAccount account = db.account().getAccount(browsable.account);

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

Loading…
Cancel
Save