mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 15:07:51 -05:00
Rename dismissInvalidResource to dismissCollectionError (#1887)
Rename method for clarity Signed-off-by: Sunik Kupfer <kupfer@bitfire.at>
This commit is contained in:
@@ -136,7 +136,7 @@ abstract class SyncManager<LocalType: LocalResource, out CollectionType: LocalCo
|
||||
|
||||
suspend fun performSync() = withContext(syncDispatcher) {
|
||||
// dismiss previous error notifications
|
||||
syncNotificationManager.dismissInvalidResource(localCollectionTag = localCollection.tag)
|
||||
syncNotificationManager.dismissCollectionError(localCollectionTag = localCollection.tag)
|
||||
|
||||
try {
|
||||
logger.info("Preparing synchronization")
|
||||
|
||||
@@ -159,7 +159,7 @@ class SyncNotificationManager @AssistedInject constructor(
|
||||
/**
|
||||
* Sends a notification to inform the user that a push notification has been received, the
|
||||
* sync has been scheduled, but it still has not run.
|
||||
* Use [dismissInvalidResource] to dismiss the notification.
|
||||
* Use [dismissCollectionError] to dismiss the notification.
|
||||
*
|
||||
* @param dataType The type of data which was synced.
|
||||
* @param notificationTag The tag to use for the notification.
|
||||
@@ -200,7 +200,7 @@ class SyncNotificationManager @AssistedInject constructor(
|
||||
*
|
||||
* @param localCollectionTag The tag of the local collection which is used as notification tag also.
|
||||
*/
|
||||
fun dismissInvalidResource(localCollectionTag: String) =
|
||||
fun dismissCollectionError(localCollectionTag: String) =
|
||||
dismissNotification(localCollectionTag)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user