Remove now unused folder name from SyncListener callbacks
This commit is contained in:
parent
86326ea0b9
commit
611a57fb0e
6 changed files with 12 additions and 15 deletions
|
@ -2869,7 +2869,7 @@ public class MessagingController {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void syncStarted(@NotNull String folderServerId, @NotNull String folderName) {
|
||||
public void syncStarted(@NotNull String folderServerId) {
|
||||
for (MessagingListener messagingListener : getListeners(listener)) {
|
||||
messagingListener.synchronizeMailboxStarted(account, folderServerId);
|
||||
}
|
||||
|
@ -2881,7 +2881,7 @@ public class MessagingController {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void syncHeadersStarted(@NotNull String folderServerId, @NotNull String folderName) {
|
||||
public void syncHeadersStarted(@NotNull String folderServerId) {
|
||||
for (MessagingListener messagingListener : getListeners(listener)) {
|
||||
messagingListener.synchronizeMailboxHeadersStarted(account, folderServerId);
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package com.fsck.k9.backend.api
|
||||
|
||||
interface SyncListener {
|
||||
fun syncStarted(folderServerId: String, folderName: String)
|
||||
fun syncStarted(folderServerId: String)
|
||||
|
||||
fun syncAuthenticationSuccess()
|
||||
|
||||
fun syncHeadersStarted(folderServerId: String, folderName: String)
|
||||
fun syncHeadersStarted(folderServerId: String)
|
||||
fun syncHeadersProgress(folderServerId: String, completed: Int, total: Int)
|
||||
fun syncHeadersFinished(folderServerId: String, totalMessagesInMailbox: Int, numNewMessages: Int)
|
||||
|
||||
|
|
|
@ -58,9 +58,8 @@ class ImapSync {
|
|||
try {
|
||||
Timber.v("SYNC: About to get local folder %s", folder);
|
||||
backendFolder = backendStorage.getFolder(folder);
|
||||
String folderName = backendFolder.getName();
|
||||
|
||||
listener.syncStarted(folder, folderName);
|
||||
listener.syncStarted(folder);
|
||||
|
||||
/*
|
||||
* Get the message list from the local store and create an index of
|
||||
|
@ -138,7 +137,7 @@ class ImapSync {
|
|||
remoteStart, remoteMessageCount, folder);
|
||||
|
||||
final AtomicInteger headerProgress = new AtomicInteger(0);
|
||||
listener.syncHeadersStarted(folder, folderName);
|
||||
listener.syncHeadersStarted(folder);
|
||||
|
||||
|
||||
List<ImapMessage> remoteMessageArray =
|
||||
|
|
|
@ -3,9 +3,9 @@ package com.fsck.k9.backend.imap
|
|||
import com.fsck.k9.backend.api.SyncListener
|
||||
|
||||
class SimpleSyncListener : SyncListener {
|
||||
override fun syncStarted(folderServerId: String, folderName: String) = Unit
|
||||
override fun syncStarted(folderServerId: String) = Unit
|
||||
override fun syncAuthenticationSuccess() = Unit
|
||||
override fun syncHeadersStarted(folderServerId: String, folderName: String) = Unit
|
||||
override fun syncHeadersStarted(folderServerId: String) = Unit
|
||||
override fun syncHeadersProgress(folderServerId: String, completed: Int, total: Int) = Unit
|
||||
override fun syncHeadersFinished(folderServerId: String, totalMessagesInMailbox: Int, numNewMessages: Int) = Unit
|
||||
override fun syncProgress(folderServerId: String, completed: Int, total: Int) = Unit
|
||||
|
|
|
@ -55,9 +55,8 @@ class Pop3Sync {
|
|||
|
||||
Timber.v("SYNC: About to get local folder %s", folder);
|
||||
backendFolder = backendStorage.getFolder(folder);
|
||||
String folderName = backendFolder.getName();
|
||||
|
||||
listener.syncStarted(folder, folderName);
|
||||
listener.syncStarted(folder);
|
||||
|
||||
/*
|
||||
* Get the message list from the local store and create an index of
|
||||
|
@ -129,7 +128,7 @@ class Pop3Sync {
|
|||
remoteStart, remoteMessageCount, folder);
|
||||
|
||||
final AtomicInteger headerProgress = new AtomicInteger(0);
|
||||
listener.syncHeadersStarted(folder, folderName);
|
||||
listener.syncHeadersStarted(folder);
|
||||
|
||||
|
||||
List<Pop3Message> remoteMessageArray =
|
||||
|
|
|
@ -56,9 +56,8 @@ class WebDavSync {
|
|||
|
||||
Timber.v("SYNC: About to get local folder %s", folder);
|
||||
backendFolder = backendStorage.getFolder(folder);
|
||||
String folderName = backendFolder.getName();
|
||||
|
||||
listener.syncStarted(folder, folderName);
|
||||
listener.syncStarted(folder);
|
||||
|
||||
/*
|
||||
* Get the message list from the local store and create an index of
|
||||
|
@ -130,7 +129,7 @@ class WebDavSync {
|
|||
remoteStart, remoteMessageCount, folder);
|
||||
|
||||
final AtomicInteger headerProgress = new AtomicInteger(0);
|
||||
listener.syncHeadersStarted(folder, folderName);
|
||||
listener.syncHeadersStarted(folder);
|
||||
|
||||
|
||||
List<WebDavMessage> remoteMessageArray =
|
||||
|
|
Loading…
Reference in a new issue