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:
parent
23701bc4ae
commit
1bd5b12619
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user