Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e43f181

Browse files
committedMar 4, 2025·
Syntactic sugar
1 parent 2e860a3 commit e43f181

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎app/src/main/kotlin/at/bitfire/davdroid/sync/SyncNotificationManager.kt

+4-6
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,12 @@ class SyncNotificationManager @AssistedInject constructor(
5959
*/
6060
fun notifyProviderError(authority: String) {
6161
val (titleResource, textResource) = when (authority) {
62-
ContactsContract.AUTHORITY -> Pair(
63-
R.string.sync_warning_contacts_storage_disabled_title,
62+
ContactsContract.AUTHORITY ->
63+
R.string.sync_warning_contacts_storage_disabled_title to
6464
R.string.sync_warning_contacts_storage_disabled_description
65-
)
66-
CalendarContract.AUTHORITY -> Pair(
67-
R.string.sync_warning_calendar_storage_disabled_title,
65+
CalendarContract.AUTHORITY ->
66+
R.string.sync_warning_calendar_storage_disabled_title to
6867
R.string.sync_warning_calendar_storage_disabled_description
69-
)
7068
else -> {
7169
logger.log(Level.WARNING, "Content provider error for unknown authority: $authority")
7270
return

0 commit comments

Comments
 (0)
Please sign in to comment.