mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Use applicationContext as context for Device
Co-authored-by: ShellWen Chen <me@shellwen.com>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user