mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-27 08:30:34 +00:00
蓝牙弹多次弹框问题
Signed-off-by: chenlang <chenlang28@h-partners.com>
This commit is contained in:
parent
d10cd05dc9
commit
66e932d67f
@ -33,7 +33,7 @@ const PAIRED_ITEM_NUMBER = 3;
|
||||
const PAGE_URI_DEVICE_NAME = 'pages/deviceName';
|
||||
const PAGE_URI_BLUETOOTH_PAIRED_DEVICE_INFO = 'pages/bluetoothPairedDeviceInfo';
|
||||
const deviceTypeInfo = deviceInfo.deviceType;
|
||||
|
||||
let pinRequiredTIimer = null;
|
||||
@Entry
|
||||
@Component
|
||||
struct Bluetooth {
|
||||
@ -567,13 +567,16 @@ struct AvailableDeviceComponent {
|
||||
}
|
||||
|
||||
pinRequiredParamChange(){
|
||||
this.pairPinCode = this.pinRequiredParam.pinCode;
|
||||
this.pairingDevice = this.pairData;
|
||||
if (this.pairDialog) {
|
||||
this.pairDialog.open();
|
||||
}() => {
|
||||
this.showPairFailedDialog();
|
||||
}
|
||||
clearTimeout(pinRequiredTIimer);
|
||||
pinRequiredTIimer = setTimeout(()=>{
|
||||
this.pairPinCode = this.pinRequiredParam.pinCode;
|
||||
this.pairingDevice = this.pairData;
|
||||
if (this.pairDialog) {
|
||||
this.pairDialog.open();
|
||||
}() => {
|
||||
this.showPairFailedDialog();
|
||||
}
|
||||
},1000)
|
||||
}
|
||||
/**
|
||||
* Pair device
|
||||
|
Loading…
Reference in New Issue
Block a user