summaryrefslogtreecommitdiffhomepage
path: root/android/tile/src
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2024-08-28 20:33:46 +0200
committerAlbin <albin@mullvad.net>2024-08-28 20:44:14 +0200
commitb52c423d777213d5bb92430bccec880c6367a70b (patch)
tree6ce254a809c1555fbde9a1c5692725042803854c /android/tile/src
parenta71f1e7a6888bc6af5a9df355afd26d3f56d0e5c (diff)
downloadmullvadvpn-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/tile/src')
-rw-r--r--android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt b/android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt
index aef6f3505e..8e1d9e10ed 100644
--- a/android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt
+++ b/android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt
@@ -51,7 +51,7 @@ class MullvadTileService : TileService() {
// Workaround for the reported bug: https://issuetracker.google.com/issues/236862865
suspend fun isUnlockStatusPropagatedWithinTimeout(
unlockTimeoutMillis: Long,
- unlockCheckDelayMillis: Long
+ unlockCheckDelayMillis: Long,
): Boolean {
return withTimeoutOrNull(unlockTimeoutMillis) {
while (isLocked) {
@@ -66,7 +66,7 @@ class MullvadTileService : TileService() {
val isUnlockStatusPropagated =
isUnlockStatusPropagatedWithinTimeout(
unlockTimeoutMillis = 1000L,
- unlockCheckDelayMillis = 100L
+ unlockCheckDelayMillis = 100L,
)
if (isUnlockStatusPropagated) {
@@ -130,7 +130,7 @@ class MullvadTileService : TileService() {
applicationContext,
0,
intent,
- SdkUtils.getSupportedPendingIntentFlags()
+ SdkUtils.getSupportedPendingIntentFlags(),
)
startActivityAndCollapse(pendingIntent)
} else {
@@ -142,7 +142,7 @@ class MullvadTileService : TileService() {
private suspend fun launchListenToTunnelState() {
combine(
connectionProxy.tunnelState.onStart { emit(TunnelState.Disconnected(null)) },
- managementService.connectionState
+ managementService.connectionState,
) { tunnelState, connectionState ->
tunnelState to connectionState
}
@@ -153,7 +153,7 @@ class MullvadTileService : TileService() {
private fun mapToTileState(
tunnelState: TunnelState,
- connectionState: GrpcConnectivityState
+ connectionState: GrpcConnectivityState,
): Int {
return if (connectionState == GrpcConnectivityState.Ready) {
when (tunnelState) {