. Choosing '-NONE-' as default folder, was opening the MessageList of the '-NONE-' folder

--> It now opens, the FolderList
TODO: Externalize the '-NONE-' string
This commit is contained in:
Bao-Long Nguyen-Trong 2009-06-06 15:42:33 +00:00
parent 913604f385
commit 5e28b65c76
2 changed files with 4 additions and 1 deletions

View file

@ -237,7 +237,7 @@ public class ChooseFolder extends K9ListActivity
if (showOptionNone)
{
localFolders.add("-NONE-");
localFolders.add(Email.FOLDER_NONE);
}
Collections.sort(localFolders, new Comparator<String>() {

View file

@ -413,6 +413,9 @@ public class FolderList extends K9ListActivity {
if (mInitialFolder == null) {
mInitialFolder = mAccount.getAutoExpandFolderName();
if (Email.FOLDER_NONE.equals(mInitialFolder)) {
mInitialFolder = null;
}
}
}