mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-14 07:08:00 -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);
|
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)
|
||||||
|
@ -775,12 +775,8 @@ public class MessageList
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void onShowFolderList()
|
private void onShowFolderList()
|
||||||
{
|
|
||||||
if (mStartup || isTaskRoot())
|
|
||||||
{
|
{
|
||||||
FolderList.actionHandleAccount(this, mAccount, false);
|
FolderList.actionHandleAccount(this, mAccount, false);
|
||||||
}
|
|
||||||
|
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user