1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-15 22:15:15 -05:00

Issue 481

When in MessageList, Check mail should only sync the displayed folder.
This commit is contained in:
Daniel Applebaum 2009-06-09 03:23:07 +00:00
parent 10b9b0a05b
commit 770032d960

View File

@ -911,9 +911,9 @@ public class MessageList extends K9ListActivity {
mHandler.dataChanged(); mHandler.dataChanged();
} }
private void checkMail(final Account account) { // private void checkMail(final Account account) {
MessagingController.getInstance(getApplication()).checkMail(this, account, true, true, mAdapter.mListener); // MessagingController.getInstance(getApplication()).checkMail(this, account, true, true, mAdapter.mListener);
} // }
private void checkMail(Account account, String folderName) { private void checkMail(Account account, String folderName) {
MessagingController.getInstance(getApplication()).synchronizeMailbox( account, folderName, mAdapter.mListener); MessagingController.getInstance(getApplication()).synchronizeMailbox( account, folderName, mAdapter.mListener);
@ -923,7 +923,7 @@ public class MessageList extends K9ListActivity {
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) { switch (item.getItemId()) {
case R.id.check_mail: case R.id.check_mail:
checkMail(mAccount); checkMail(mAccount, mFolderName);
return true; return true;
case R.id.compose: case R.id.compose: