Fixed issue 522 and some minor navigation issue

This commit is contained in:
Bao-Long Nguyen-Trong 2009-06-26 18:15:41 +00:00
parent c1ec077720
commit 2521e032a7
2 changed files with 5 additions and 3 deletions

View File

@ -346,7 +346,7 @@ public class FolderList extends K9ListActivity {
}
public static void actionHandleAccount(Context context, Account account, String initialFolder) {
actionHandleAccount(context, account, null, false);
actionHandleAccount(context, account, initialFolder, false);
}
public static void actionHandleAccount(Context context, Account account, boolean startup) {
@ -533,7 +533,8 @@ public class FolderList extends K9ListActivity {
private void onAccounts() {
// If we're a child activity (say because Welcome dropped us straight to the message list
// we won't have a parent activity and we'll need to get back to it
if (mStartup) {
if (mStartup
|| isTaskRoot()) {
startActivity(new Intent(this, Accounts.class));
}
finish();

View File

@ -599,7 +599,8 @@ public class MessageList extends K9ListActivity {
private void onShowFolderList() {
// If we're a child activity (say because Welcome dropped us straight to the message list
// we won't have a parent activity and we'll need to get back to it
if (mStartup) {
if (mStartup
|| isTaskRoot()) {
FolderList.actionHandleAccount(this, mAccount, false);
}
finish();