This commit is contained in:
yuqian 2025-12-29 18:28:37 +08:00
parent 5743722fe2
commit a73e12b48c

View File

@ -375,7 +375,7 @@ class HardWareFragment : Fragment() {
* 显示已配对设备弹窗
*/
private fun showPairedDevicesDialog() {
dialogBlueTooth = dialogBlueTooth ?: DialogBlueTooth()
dialogBlueTooth = dialogBlueTooth ?: DialogBlueTooth(type = 0)
println("showBluetoothDialog" + AndInfo.instance.bluetooth.bondedDevices.size)
dialogBlueTooth?.show(childFragmentManager, "BlueTooth1")
}
@ -394,7 +394,7 @@ class HardWareFragment : Fragment() {
Toast.makeText(requireContext(), "请先开启蓝牙", Toast.LENGTH_SHORT).show()
return
}
dialogNearBlueTooth = dialogNearBlueTooth ?: DialogBlueTooth()
dialogNearBlueTooth = dialogNearBlueTooth ?: DialogBlueTooth(type = 1)
println("showBluetoothDialog" + AndInfo.instance.bluetooth.bondedDevices.size)
dialogNearBlueTooth?.show(childFragmentManager, "BlueTooth2")
}