mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Properly synchronize some new methods
This commit is contained in:
parent
f29f5adc4b
commit
81fd4749cc
@ -4610,7 +4610,7 @@ public class MessagingController implements Runnable
|
||||
}
|
||||
|
||||
|
||||
public void synchronizeMailboxProgress(Account account, String folderName, int completed, int total)
|
||||
public synchronized void synchronizeMailboxProgress(Account account, String folderName, int completed, int total)
|
||||
{
|
||||
Memory memory = getMemory(account, folderName);
|
||||
memory.folderCompleted = completed;
|
||||
@ -4618,25 +4618,25 @@ public class MessagingController implements Runnable
|
||||
}
|
||||
|
||||
|
||||
public void pendingCommandsProcessing(Account account)
|
||||
public synchronized void pendingCommandsProcessing(Account account)
|
||||
{
|
||||
Memory memory = getMemory(account, null);
|
||||
memory.processingState = MemorizingState.STARTED;
|
||||
memory.folderCompleted = 0;
|
||||
memory.folderTotal = 0;
|
||||
}
|
||||
public void pendingCommandsFinished(Account account)
|
||||
public synchronized void pendingCommandsFinished(Account account)
|
||||
{
|
||||
Memory memory = getMemory(account, null);
|
||||
memory.processingState = MemorizingState.FINISHED;
|
||||
}
|
||||
public void pendingCommandStarted(Account account, String commandTitle)
|
||||
public synchronized void pendingCommandStarted(Account account, String commandTitle)
|
||||
{
|
||||
Memory memory = getMemory(account, null);
|
||||
memory.processingCommandTitle = commandTitle;
|
||||
}
|
||||
|
||||
public void pendingCommandCompleted(Account account, String commandTitle)
|
||||
public synchronized void pendingCommandCompleted(Account account, String commandTitle)
|
||||
{
|
||||
Memory memory = getMemory(account, null);
|
||||
memory.processingCommandTitle = null;
|
||||
|
Loading…
Reference in New Issue
Block a user