mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 22:25:08 +00:00
Show protocol version in encryption info
This commit is contained in:
@@ -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="share_to">Share to…</string>
|
||||||
<string name="unreachable_device">%s (Unreachable)</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="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="protocol_version_newer">This device uses a newer protocol version</string>
|
||||||
<string name="plugin_settings_with_name">%s settings</string>
|
<string name="plugin_settings_with_name">%s settings</string>
|
||||||
<string name="invalid_device_name">Invalid device name</string>
|
<string name="invalid_device_name">Invalid device name</string>
|
||||||
|
@@ -150,6 +150,9 @@ class Device : PacketReceiver {
|
|||||||
val deviceType: DeviceType
|
val deviceType: DeviceType
|
||||||
get() = deviceInfo.type
|
get() = deviceInfo.type
|
||||||
|
|
||||||
|
val protocolVersion: Int
|
||||||
|
get() = deviceInfo.protocolVersion
|
||||||
|
|
||||||
val deviceId: String
|
val deviceId: String
|
||||||
get() = deviceInfo.id
|
get() = deviceInfo.id
|
||||||
|
|
||||||
|
@@ -219,6 +219,10 @@ class DeviceFragment : Fragment() {
|
|||||||
requireContext().resources.getString(R.string.remote_device_fingerprint)
|
requireContext().resources.getString(R.string.remote_device_fingerprint)
|
||||||
} \n ${
|
} \n ${
|
||||||
SslHelper.getCertificateHash(device.certificate)
|
SslHelper.getCertificateHash(device.certificate)
|
||||||
|
} \n\n ${
|
||||||
|
requireContext().resources.getString(R.string.protocol_version)
|
||||||
|
} ${
|
||||||
|
device.protocolVersion
|
||||||
}"
|
}"
|
||||||
)
|
)
|
||||||
menu.add(R.string.encryption_info_title).setOnMenuItemClickListener {
|
menu.add(R.string.encryption_info_title).setOnMenuItemClickListener {
|
||||||
|
Reference in New Issue
Block a user