Consider not sticky folders as read only

pull/159/head
M66B 6 years ago
parent d8b398cf27
commit 40cba0f42b

@ -771,7 +771,7 @@ public class ServiceSynchronize extends LifecycleService {
if (BuildConfig.DEBUG && "Postausgang".equals(folder.name)) if (BuildConfig.DEBUG && "Postausgang".equals(folder.name))
throw new ReadOnlyFolderException(ifolder); throw new ReadOnlyFolderException(ifolder);
ifolder.open(Folder.READ_WRITE); ifolder.open(Folder.READ_WRITE);
db.folder().setFolderReadOnly(folder.id, false); db.folder().setFolderReadOnly(folder.id, ifolder.getUIDNotSticky());
} catch (ReadOnlyFolderException ex) { } catch (ReadOnlyFolderException ex) {
Log.w(folder.name + " read only"); Log.w(folder.name + " read only");
try { try {

Loading…
Cancel
Save