Fixed initial folder selection

This commit is contained in:
str4d
2014-02-26 07:10:58 +00:00
parent 89565df4fb
commit b671852ce7
2 changed files with 6 additions and 1 deletions

View File

@@ -14,6 +14,11 @@ import i2p.bote.folder.EmailFolder;
public class BoteHelper {
private static AddressDisplayFilter ADDRESS_DISPLAY_FILTER;
/**
* Get an EmailFolder. If the folder is not found, returns null.
* @param folderName The folder to get.
* @return the EmailFolder.
*/
public static EmailFolder getMailFolder(String folderName) {
List<EmailFolder> folders = I2PBote.getInstance().getEmailFolders();
for (EmailFolder folder : folders) {

View File

@@ -96,7 +96,7 @@ public class MailListActivity extends ActionBarActivity {
// Set the drawer toggle as the DrawerListener
mDrawerLayout.setDrawerListener(mDrawerToggle);
mActiveFolder = "";
mActiveFolder = "inbox";
if (savedInstanceState != null) {
mActiveFolder = savedInstanceState.getString(ACTIVE_FOLDER);
}