1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-14 07:08:00 -05:00

Only trigger our "loading" indicator if the account matches "our" account

This commit is contained in:
Jesse Vincent 2009-12-27 17:20:06 +00:00
parent 204289a4ff
commit a736a4267c

View File

@ -1591,7 +1591,7 @@ public class MessageList
@Override @Override
public void listLocalMessagesStarted(Account account, String folder) public void listLocalMessagesStarted(Account account, String folder)
{ {
if (account.equals(mAccount)) if (account != null && account.equals(mAccount))
{ {
mHandler.progress(true); mHandler.progress(true);
mHandler.folderLoading(folder, true); mHandler.folderLoading(folder, true);
@ -1601,7 +1601,7 @@ public class MessageList
@Override @Override
public void listLocalMessagesFailed(Account account, String folder, String message) public void listLocalMessagesFailed(Account account, String folder, String message)
{ {
if (account.equals(mAccount)) if (account != null && account.equals(mAccount))
{ {
mHandler.sortMessages(); mHandler.sortMessages();
mHandler.progress(false); mHandler.progress(false);
@ -1613,7 +1613,7 @@ public class MessageList
@Override @Override
public void listLocalMessagesFinished(Account account, String folder) public void listLocalMessagesFinished(Account account, String folder)
{ {
if (account.equals(mAccount)) if (account != null && account.equals(mAccount))
{ {
mHandler.sortMessages(); mHandler.sortMessages();
mHandler.progress(false); mHandler.progress(false);