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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user