diff options
| author | Albin <albin@mullvad.net> | 2024-08-28 20:33:46 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2024-08-28 20:44:14 +0200 |
| commit | b52c423d777213d5bb92430bccec880c6367a70b (patch) | |
| tree | 6ce254a809c1555fbde9a1c5692725042803854c /android/lib/common | |
| parent | a71f1e7a6888bc6af5a9df355afd26d3f56d0e5c (diff) | |
| download | mullvadvpn-b52c423d777213d5bb92430bccec880c6367a70b.tar.xz mullvadvpn-b52c423d777213d5bb92430bccec880c6367a70b.zip | |
Reformat kotlin code using updated ktfmt plugin
This commit mostly adds trailing commas throughout the project,
but also includes a few other formatting changes.
Diffstat (limited to 'android/lib/common')
2 files changed, 4 insertions, 4 deletions
diff --git a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt index bbdd2a56a5..4a5c902d96 100644 --- a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt +++ b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt @@ -3,5 +3,5 @@ package net.mullvad.mullvadvpn.lib.common.util data class ErrorNotificationMessage( val titleResourceId: Int, val messageResourceId: Int, - val optionalMessageArgument: String? = null + val optionalMessageArgument: String? = null, ) diff --git a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorStateExtension.kt b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorStateExtension.kt index 2c9554a842..5d30a01b2f 100644 --- a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorStateExtension.kt +++ b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorStateExtension.kt @@ -15,7 +15,7 @@ fun ErrorState.getErrorNotificationResources(context: Context): ErrorNotificatio cause.errorMessageId(), (cause as ErrorStateCause.InvalidDnsServers).addresses.joinToString { address -> address.addressString() - } + }, ) } cause is ErrorStateCause.VpnPermissionDenied -> { @@ -33,12 +33,12 @@ private fun resolveAlwaysOnVpnErrorNotificationMessage( ErrorNotificationMessage( R.string.always_on_vpn_error_notification_title, R.string.always_on_vpn_error_notification_content, - alwaysOnVpnAppName + alwaysOnVpnAppName, ) } else { ErrorNotificationMessage( R.string.vpn_permission_error_notification_title, - R.string.vpn_permission_error_notification_message + R.string.vpn_permission_error_notification_message, ) } } |
