mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Also compare protocol version to consider device info needs saving
This commit is contained in:
@@ -361,10 +361,11 @@ class Device : PacketReceiver {
|
||||
|
||||
fun updateDeviceInfo(newDeviceInfo: DeviceInfo): Boolean {
|
||||
var hasChanges = false
|
||||
if (deviceInfo.name != newDeviceInfo.name || deviceInfo.type != newDeviceInfo.type) {
|
||||
if (deviceInfo.name != newDeviceInfo.name || deviceInfo.type != newDeviceInfo.type || deviceInfo.protocolVersion != newDeviceInfo.protocolVersion) {
|
||||
hasChanges = true
|
||||
deviceInfo.name = newDeviceInfo.name
|
||||
deviceInfo.type = newDeviceInfo.type
|
||||
deviceInfo.protocolVersion = newDeviceInfo.protocolVersion
|
||||
if (isPaired) {
|
||||
deviceInfo.saveInSettings(settings)
|
||||
}
|
||||
|
Reference in New Issue
Block a user