Additional highlight for other peoples devices.

This commit is contained in:
darken
2022-01-17 20:07:59 +01:00
parent c3e9053cdd
commit f8d470c730
5 changed files with 13 additions and 0 deletions
@@ -34,6 +34,9 @@ class BasicSingleApplePodsCardVH(parent: ViewGroup) :
lastSeen.text = device.lastSeenFormatted(item.now)
reception.text = device.getSignalQuality(context)
if (item.isMainPod) {
reception.append("\n(${getString(R.string.pods_yours)})")
}
headphones.apply {
val sb = StringBuilder(context.getString(R.string.pods_single_headphones_label))
@@ -36,6 +36,9 @@ class DualApplePodsCardVH(parent: ViewGroup) :
lastSeen.text = device.lastSeenFormatted(item.now)
reception.text = device.getSignalQuality(context)
if (item.isMainPod) {
reception.append("\n(${getString(R.string.pods_yours)})")
}
podLeft.apply {
val sb = StringBuilder(context.getString(R.string.pods_dual_left_label))
@@ -34,6 +34,9 @@ class SingleApplePodsCardVH(parent: ViewGroup) :
lastSeen.text = device.lastSeenFormatted(item.now)
reception.text = device.getSignalQuality(context)
if (item.isMainPod) {
reception.append("\n(${getString(R.string.pods_yours)})")
}
headphones.apply {
val sb = StringBuilder(context.getString(R.string.pods_single_headphones_label))
@@ -31,6 +31,9 @@ class UnknownPodDeviceCardVH(parent: ViewGroup) :
lastSeen.text = device.lastSeenFormatted(item.now)
reception.text = device.getSignalQuality(context)
if (item.isMainPod) {
reception.append("\n(${getString(R.string.pods_yours)})")
}
rawdata.text = device.rawDataHex
}
+1
View File
@@ -71,6 +71,7 @@
<string name="pods_charging_label">Charging</string>
<string name="pods_inear_label">In ear</string>
<string name="pods_microphone_label">Microphone</string>
<string name="pods_yours">Yours</string>
<string name="settings_label">Settings</string>
<string name="settings_privacy_policy_label">Privacy policy</string>