diff --git a/res/values/strings.xml b/res/values/strings.xml index 79d4879a..09b6fc2c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -264,6 +264,7 @@ SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted Share to… %s (Unreachable) URLs shared to an unreachable device will be delivered to it once it becomes reachable.\n\n + Protocol version: This device uses a newer protocol version %s settings Invalid device name diff --git a/src/org/kde/kdeconnect/Device.kt b/src/org/kde/kdeconnect/Device.kt index 95df6704..c1c63b21 100644 --- a/src/org/kde/kdeconnect/Device.kt +++ b/src/org/kde/kdeconnect/Device.kt @@ -150,6 +150,9 @@ class Device : PacketReceiver { val deviceType: DeviceType get() = deviceInfo.type + val protocolVersion: Int + get() = deviceInfo.protocolVersion + val deviceId: String get() = deviceInfo.id diff --git a/src/org/kde/kdeconnect/UserInterface/DeviceFragment.kt b/src/org/kde/kdeconnect/UserInterface/DeviceFragment.kt index 4dd0124e..bd69a658 100644 --- a/src/org/kde/kdeconnect/UserInterface/DeviceFragment.kt +++ b/src/org/kde/kdeconnect/UserInterface/DeviceFragment.kt @@ -219,6 +219,10 @@ class DeviceFragment : Fragment() { requireContext().resources.getString(R.string.remote_device_fingerprint) } \n ${ SslHelper.getCertificateHash(device.certificate) + } \n\n ${ + requireContext().resources.getString(R.string.protocol_version) + } ${ + device.protocolVersion }" ) menu.add(R.string.encryption_info_title).setOnMenuItemClickListener {