1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Merge pull request #232 from ssieb/master

load the right number of messages from the server
This commit is contained in:
Andrew Chen 2013-01-16 12:33:11 -08:00
commit b23b240550

View File

@ -866,7 +866,7 @@ public class MessagingController implements Runnable {
LocalStore localStore = account.getLocalStore(); LocalStore localStore = account.getLocalStore();
LocalFolder localFolder = localStore.getFolder(folder); LocalFolder localFolder = localStore.getFolder(folder);
if (localFolder.getVisibleLimit() > 0) { if (localFolder.getVisibleLimit() > 0) {
localFolder.setVisibleLimit(localFolder.getVisibleLimit() + localFolder.getMessageCount()); localFolder.setVisibleLimit(localFolder.getVisibleLimit() + account.getDisplayCount());
} }
synchronizeMailbox(account, folder, listener, null); synchronizeMailbox(account, folder, listener, null);
} catch (MessagingException me) { } catch (MessagingException me) {