1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-13 22:58:03 -05:00

improve the MessageList->FolderList flow. Should fix Issue 916

This commit is contained in:
Jesse Vincent 2009-12-16 05:26:43 +00:00
parent f318a6e481
commit 9ae7934cad
2 changed files with 5 additions and 7 deletions

View File

@ -349,11 +349,11 @@ public class FolderList extends K9ListActivity
} }
Log.v(K9.LOG_TAG, "mInitialFolder: " + initialFolder); Log.v(K9.LOG_TAG, "mInitialFolder: " + initialFolder);
if (initialFolder != null if (mStartup
&& initialFolder != null
&& !K9.FOLDER_NONE.equals(initialFolder)) && !K9.FOLDER_NONE.equals(initialFolder))
{ {
onOpenFolder(initialFolder, true); onOpenFolder(initialFolder, true);
finish();
} }
else else
{ {
@ -370,6 +370,7 @@ public class FolderList extends K9ListActivity
{ {
Log.v(K9.LOG_TAG,"We're clicking "+itemPosition+" -- "+id); Log.v(K9.LOG_TAG,"We're clicking "+itemPosition+" -- "+id);
MessageList.actionHandleFolder(FolderList.this, mAccount, ((FolderInfoHolder)mAdapter.getItem(id)).name, false); MessageList.actionHandleFolder(FolderList.this, mAccount, ((FolderInfoHolder)mAdapter.getItem(id)).name, false);
finish();
} }
}); });
registerForContextMenu(mListView); registerForContextMenu(mListView);
@ -585,6 +586,7 @@ public class FolderList extends K9ListActivity
private void onOpenFolder(String folder, boolean startup) private void onOpenFolder(String folder, boolean startup)
{ {
MessageList.actionHandleFolder(this, mAccount, folder, startup); MessageList.actionHandleFolder(this, mAccount, folder, startup);
finish();
} }
private void onCompact(Account account) private void onCompact(Account account)

View File

@ -776,11 +776,7 @@ public class MessageList
private void onShowFolderList() private void onShowFolderList()
{ {
if (mStartup || isTaskRoot()) FolderList.actionHandleAccount(this, mAccount, false);
{
FolderList.actionHandleAccount(this, mAccount, false);
}
finish(); finish();
} }