chore: add no watch connected messgae
This commit is contained in:
parent
401d009ce4
commit
a4be4bb0a7
3 changed files with 3 additions and 2 deletions
|
@ -134,7 +134,7 @@ class DataLayerListenerServiceMobile : WearableListenerService() {
|
||||||
aapsLogger.debug(LTag.WEAR, "Nodes: ${capabilityInfo.nodes.joinToString(", ") { it.displayName + "(" + it.id + ")" }}")
|
aapsLogger.debug(LTag.WEAR, "Nodes: ${capabilityInfo.nodes.joinToString(", ") { it.displayName + "(" + it.id + ")" }}")
|
||||||
val bestNode = pickBestNodeId(capabilityInfo.nodes)
|
val bestNode = pickBestNodeId(capabilityInfo.nodes)
|
||||||
transcriptionNodeId = bestNode?.id
|
transcriptionNodeId = bestNode?.id
|
||||||
wearPlugin.connectedDevice = bestNode?.displayName ?: "---"
|
wearPlugin.connectedDevice = bestNode?.displayName ?: rh.gs(R.string.no_watch_connected)
|
||||||
rxBus.send(EventWearUpdateGui())
|
rxBus.send(EventWearUpdateGui())
|
||||||
aapsLogger.debug(LTag.WEAR, "Selected node: ${bestNode?.displayName} $transcriptionNodeId")
|
aapsLogger.debug(LTag.WEAR, "Selected node: ${bestNode?.displayName} $transcriptionNodeId")
|
||||||
rxBus.send(EventMobileToWear(EventData.ActionPing(System.currentTimeMillis())))
|
rxBus.send(EventMobileToWear(EventData.ActionPing(System.currentTimeMillis())))
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
android:gravity="center_vertical|center_horizontal"
|
android:gravity="center_vertical|center_horizontal"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="10dp"
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:text="---"
|
android:text="@string/no_watch_connected"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
tools:ignore="HardcodedText" />
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
|
|
@ -1249,6 +1249,7 @@
|
||||||
<string name="description_source_aidex">Receive BG values from GlucoRx Aidex CGMS.</string>
|
<string name="description_source_aidex">Receive BG values from GlucoRx Aidex CGMS.</string>
|
||||||
<string name="blocked_by_charging">Blocked by charging options</string>
|
<string name="blocked_by_charging">Blocked by charging options</string>
|
||||||
<string name="blocked_by_connectivity">Blocked by connectivity options</string>
|
<string name="blocked_by_connectivity">Blocked by connectivity options</string>
|
||||||
|
<string name="no_watch_connected">(No Watch Connected)</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue