mirror of
https://gitee.com/openharmony/applications_settings
synced 2025-02-17 07:37:45 +00:00
蓝牙模块优化
Signed-off-by: yansong <yansong14@huawei.com>
This commit is contained in:
parent
fb22877aa3
commit
be0effc73a
@ -664,6 +664,10 @@ class AvailableDevicesDataSource extends BasicDataSource {
|
||||
}
|
||||
|
||||
public getData(index: number): BluetoothDevice {
|
||||
if(!this.availableDevicesArray) {
|
||||
LogUtil.log(ConfigData.TAG + 'array is null.');
|
||||
return null;
|
||||
}
|
||||
if(index < 0 || index >= this.totalCount()) {
|
||||
LogUtil.log(ConfigData.TAG + 'index out of range.');
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user