summaryrefslogtreecommitdiffhomepage
path: root/android/tile
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2024-06-26 13:24:33 +0200
committerAlbin <albin@mullvad.net>2024-06-26 13:24:33 +0200
commitf511be6302af0f17e1cb1dd3de727938f32c7f01 (patch)
tree962cec1a268ed739783e020f2acec79a345456d2 /android/tile
parentac70101c713139244221889a61e96ecf9a56c9c6 (diff)
parenta4fbed079435932febfb3314918b1d2c2744fc7c (diff)
downloadmullvadvpn-f511be6302af0f17e1cb1dd3de727938f32c7f01.tar.xz
mullvadvpn-f511be6302af0f17e1cb1dd3de727938f32c7f01.zip
Merge branch 'replace-default-logging-tool-with-kermit-droid-704'
Diffstat (limited to 'android/tile')
-rw-r--r--android/tile/build.gradle.kts1
-rw-r--r--android/tile/src/main/kotlin/net/mullvad/mullvadvpn/tile/MullvadTileService.kt9
2 files changed, 5 insertions, 5 deletions
diff --git a/android/tile/build.gradle.kts b/android/tile/build.gradle.kts
index 0b2aab45f5..ecd1884e2d 100644
--- a/android/tile/build.gradle.kts
+++ b/android/tile/build.gradle.kts
@@ -36,6 +36,7 @@ dependencies {
implementation(Dependencies.Koin.android)
implementation(Dependencies.AndroidX.appcompat)
+ implementation(Dependencies.kermit)
implementation(Dependencies.Kotlin.stdlib)
implementation(Dependencies.KotlinX.coroutinesAndroid)
}
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 f796690f18..aef6f3505e 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
@@ -8,7 +8,7 @@ import android.net.VpnService
import android.os.Build
import android.service.quicksettings.Tile
import android.service.quicksettings.TileService
-import android.util.Log
+import co.touchlab.kermit.Logger
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.Job
import kotlinx.coroutines.MainScope
@@ -23,7 +23,6 @@ import kotlinx.coroutines.withTimeoutOrNull
import net.mullvad.mullvadvpn.lib.common.constant.KEY_CONNECT_ACTION
import net.mullvad.mullvadvpn.lib.common.constant.KEY_DISCONNECT_ACTION
import net.mullvad.mullvadvpn.lib.common.constant.MAIN_ACTIVITY_CLASS
-import net.mullvad.mullvadvpn.lib.common.constant.TAG
import net.mullvad.mullvadvpn.lib.common.constant.VPN_SERVICE_CLASS
import net.mullvad.mullvadvpn.lib.common.util.SdkUtils
import net.mullvad.mullvadvpn.lib.common.util.SdkUtils.setSubtitleIfSupported
@@ -73,7 +72,7 @@ class MullvadTileService : TileService() {
if (isUnlockStatusPropagated) {
toggleTunnel()
} else {
- Log.e("mullvad", "Unable to toggle tunnel state")
+ Logger.e("Unable to toggle tunnel state")
}
}
}
@@ -92,7 +91,7 @@ class MullvadTileService : TileService() {
val isSetup = VpnService.prepare(applicationContext) == null
// TODO This logic should be more advanced, we should ensure user has an account setup etc.
if (!isSetup) {
- Log.d(TAG, "TileService: VPN service not setup, starting main activity")
+ Logger.i("TileService: VPN service not setup, starting main activity")
val intent =
Intent().apply {
@@ -106,7 +105,7 @@ class MullvadTileService : TileService() {
startActivityAndCollapseCompat(intent)
return
} else {
- Log.d(TAG, "TileService: VPN service is setup")
+ Logger.i("TileService: VPN service is setup")
}
val intent =
Intent().apply {