2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

Show protocol version in encryption info

This commit is contained in:
Albert Vaca Cintora 2025-01-18 12:08:02 +01:00
parent 4343ad7e01
commit 0560071cfb
3 changed files with 8 additions and 0 deletions

View File

@ -264,6 +264,7 @@ SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted
<string name="share_to">Share to…</string>
<string name="unreachable_device">%s (Unreachable)</string>
<string name="unreachable_device_url_share_text">URLs shared to an unreachable device will be delivered to it once it becomes reachable.\n\n</string>
<string name="protocol_version">Protocol version:</string>
<string name="protocol_version_newer">This device uses a newer protocol version</string>
<string name="plugin_settings_with_name">%s settings</string>
<string name="invalid_device_name">Invalid device name</string>

View File

@ -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

View File

@ -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 {