2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 05:37:43 +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
No known key found for this signature in database

View File

@ -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) {