mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 23:17:50 -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) {
|
suspend fun performSync() = withContext(syncDispatcher) {
|
||||||
// dismiss previous error notifications
|
// dismiss previous error notifications
|
||||||
syncNotificationManager.dismissInvalidResource(localCollectionTag = localCollection.tag)
|
syncNotificationManager.dismissCollectionError(localCollectionTag = localCollection.tag)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
logger.info("Preparing synchronization")
|
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
|
* 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.
|
* 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 dataType The type of data which was synced.
|
||||||
* @param notificationTag The tag to use for the notification.
|
* @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.
|
* @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)
|
dismissNotification(localCollectionTag)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user