feat(config): 设置页补全设备信息字段
对照旧版 hardInfo.vue 补全缺失的 4 个字段: - 设备名称(bluetoothName,来自 DevicePrefs) - 蓝牙MAC(bluetoothMac,来自 DevicePrefs) - 蓝牙连接状态(动态,通过 EventBus BluetoothDevice 事件更新) - 电池(动态,通过 EventBus BatteryChanged 事件 + 初始化获取) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -83,6 +83,11 @@
|
||||
<TextView android:id="@+id/tvModel" style="@style/ConfigValue" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/ConfigRow">
|
||||
<TextView style="@style/ConfigLabel" android:text="设备名称" />
|
||||
<TextView android:id="@+id/tvDeviceName" style="@style/ConfigValue" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/ConfigRow">
|
||||
<TextView style="@style/ConfigLabel" android:text="系统版本" />
|
||||
<TextView android:id="@+id/tvOsVersion" style="@style/ConfigValue" />
|
||||
@@ -93,6 +98,21 @@
|
||||
<TextView android:id="@+id/tvImei" style="@style/ConfigValue" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/ConfigRow">
|
||||
<TextView style="@style/ConfigLabel" android:text="蓝牙" />
|
||||
<TextView android:id="@+id/tvBluetoothMac" style="@style/ConfigValue" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/ConfigRow">
|
||||
<TextView style="@style/ConfigLabel" android:text="连接" />
|
||||
<TextView android:id="@+id/tvBluetoothStatus" style="@style/ConfigValue" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/ConfigRow">
|
||||
<TextView style="@style/ConfigLabel" android:text="电池" />
|
||||
<TextView android:id="@+id/tvBattery" style="@style/ConfigValue" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/ConfigRow">
|
||||
<TextView style="@style/ConfigLabel" android:text="App 版本" />
|
||||
<TextView android:id="@+id/tvAppVersion" style="@style/ConfigValue" />
|
||||
|
||||
Reference in New Issue
Block a user