From 1bd5b126199b0e11b6dba27f870ae0225f61691f Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sun, 19 May 2024 13:32:58 +0200 Subject: [PATCH] Use applicationContext as context for Device Co-authored-by: ShellWen Chen --- src/org/kde/kdeconnect/KdeConnect.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/KdeConnect.kt b/src/org/kde/kdeconnect/KdeConnect.kt index 54003548..2ba6dd42 100644 --- a/src/org/kde/kdeconnect/KdeConnect.kt +++ b/src/org/kde/kdeconnect/KdeConnect.kt @@ -98,7 +98,7 @@ class KdeConnect : Application() { id }.filter { preferences.getBoolean(it, false) }.forEach { try { - val device = Device(this, it) + val device = Device(applicationContext, it) devices[it] = device device.addPairingCallback(devicePairingCallback) } catch (e: CertificateException) {