mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 09:38:52 -05:00
improve the MessageList->FolderList flow. Should fix Issue 916
This commit is contained in:
parent
f318a6e481
commit
9ae7934cad
@ -349,11 +349,11 @@ public class FolderList extends K9ListActivity
|
||||
}
|
||||
|
||||
Log.v(K9.LOG_TAG, "mInitialFolder: " + initialFolder);
|
||||
if (initialFolder != null
|
||||
if (mStartup
|
||||
&& initialFolder != null
|
||||
&& !K9.FOLDER_NONE.equals(initialFolder))
|
||||
{
|
||||
onOpenFolder(initialFolder, true);
|
||||
finish();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -370,6 +370,7 @@ public class FolderList extends K9ListActivity
|
||||
{
|
||||
Log.v(K9.LOG_TAG,"We're clicking "+itemPosition+" -- "+id);
|
||||
MessageList.actionHandleFolder(FolderList.this, mAccount, ((FolderInfoHolder)mAdapter.getItem(id)).name, false);
|
||||
finish();
|
||||
}
|
||||
});
|
||||
registerForContextMenu(mListView);
|
||||
@ -585,6 +586,7 @@ public class FolderList extends K9ListActivity
|
||||
private void onOpenFolder(String folder, boolean startup)
|
||||
{
|
||||
MessageList.actionHandleFolder(this, mAccount, folder, startup);
|
||||
finish();
|
||||
}
|
||||
|
||||
private void onCompact(Account account)
|
||||
|
@ -776,11 +776,7 @@ public class MessageList
|
||||
|
||||
private void onShowFolderList()
|
||||
{
|
||||
if (mStartup || isTaskRoot())
|
||||
{
|
||||
FolderList.actionHandleAccount(this, mAccount, false);
|
||||
}
|
||||
|
||||
FolderList.actionHandleAccount(this, mAccount, false);
|
||||
finish();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user