2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

Use applicationContext as context for Device

Co-authored-by: ShellWen Chen <me@shellwen.com>
This commit is contained in:
Albert Vaca Cintora
2024-05-19 13:32:58 +02:00
parent 23701bc4ae
commit 1bd5b12619

View File

@@ -98,7 +98,7 @@ class KdeConnect : Application() {
id id
}.filter { preferences.getBoolean(it, false) }.forEach { }.filter { preferences.getBoolean(it, false) }.forEach {
try { try {
val device = Device(this, it) val device = Device(applicationContext, it)
devices[it] = device devices[it] = device
device.addPairingCallback(devicePairingCallback) device.addPairingCallback(devicePairingCallback)
} catch (e: CertificateException) { } catch (e: CertificateException) {