mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-07 02:30:10 -05:00
Get rid of accidentally created "-NONE-" folder
This commit is contained in:
parent
f95e64f766
commit
33a2b05701
@ -641,7 +641,15 @@ public class MessagingController implements Runnable {
|
||||
*/
|
||||
for (Folder localFolder : localFolders) {
|
||||
String localFolderName = localFolder.getName();
|
||||
if (!account.isSpecialFolder(localFolderName) && !remoteFolderNames.contains(localFolderName)) {
|
||||
|
||||
// FIXME: This is a hack used to clean up when we accidentally created the
|
||||
// special placeholder folder "-NONE-".
|
||||
if (K9.FOLDER_NONE.equals(localFolderName)) {
|
||||
localFolder.delete(false);
|
||||
}
|
||||
|
||||
if (!account.isSpecialFolder(localFolderName) &&
|
||||
!remoteFolderNames.contains(localFolderName)) {
|
||||
localFolder.delete(false);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user