diff --git a/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt b/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt index 851c92dad443..67719e0a9108 100644 --- a/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt +++ b/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt @@ -510,14 +510,15 @@ class ManagementService( suspend fun setDaitaEnabled(enabled: Boolean): Either = Either.catch { - val daitaSettings = - ManagementInterface.DaitaSettings.newBuilder().setEnabled(enabled) - // TODO: Before Multihop is supported on Android, calling `setDirectOnly` with false - // will cause undefined behaviour. - .setDirectOnly(true) - .build() - grpc.setDaitaSettings(daitaSettings) - } + val daitaSettings = + ManagementInterface.DaitaSettings.newBuilder() + .setEnabled(enabled) + // TODO: Before Multihop is supported on Android, calling `setDirectOnly` + // with false will cause undefined behaviour. + .setDirectOnly(true) + .build() + grpc.setDaitaSettings(daitaSettings) + } .mapLeft(SetDaitaSettingsError::Unknown) .mapEmpty()