适配修复流水线概率性构建失败

Signed-off-by: fanchenxuan <fanchenxuan@huawei.com>
This commit is contained in:
fanchenxuan 2024-03-15 10:09:55 +08:00
parent 29dedeba6c
commit 9443bf0983
6 changed files with 11 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -125,7 +125,7 @@ export struct globalDialog {
let audioVolumeManager = audioManager.getVolumeManager();
let groupid = audio.DEFAULT_VOLUME_GROUP_ID;
audioVolumeManager.getVolumeGroupManager(groupid).then(audioVolumeGroupManager => {
audioVolumeGroupManager.setMicrophoneMute(true).then(() => {
audioVolumeGroupManager.setMicMute(true).then(() => {
if (this.controller !== undefined) {
this.controller.close();
}

View File

@ -339,7 +339,9 @@ struct mediaDocumentItem {
}
}
if (this.currentGroup == 'LOCATION') {
let backgroundState = acManager.verifyAccessTokenSync(res.appInfo.accessTokenId, BACKGROUND_LOCATION_PERMISSION);
let backgroundState = acManager.verifyAccessTokenSync(
res.appInfo.accessTokenId, BACKGROUND_LOCATION_PERMISSION
);
backgroundState === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED ?
this.selected = Constants.PERMISSION_ALLOW : null;
}

View File

@ -512,7 +512,7 @@ struct applicationItem {
})
Flex({ alignItems:ItemAlign.Start, justifyContent: FlexAlign.Start }) {
Column() {
if (globalGroup.indexOf(this.currentGroup) !== -1 && this.isMuteSupported === true) {
if (globalGroup.indexOf(this.currentGroup) !== -1 && this.isMuteSupported === true) {
Row() {
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
Text(this.currentGroup == 'CAMERA' ? $r('app.string.camera') : $r('app.string.microphone'))
@ -533,7 +533,7 @@ struct applicationItem {
let audioVolumeManager = audioManager.getVolumeManager();
let groupid = audio.DEFAULT_VOLUME_GROUP_ID;
audioVolumeManager.getVolumeGroupManager(groupid).then(audioVolumeGroupManager => {
audioVolumeGroupManager.setMicrophoneMute(false)
audioVolumeGroupManager.setMicMute(false)
})
}
}

View File

@ -96,7 +96,7 @@ struct PermissionDialog {
@State reqPerms: Array<string> = [];
@State grantGroups: Array<GroupInfo> = [];
@State userFixedFlag: number = 2; // means user fixed
@State appName: string = "";
@State appName: string = '';
@State locationFlag: number = Constants.LOCATION_NONE;
@State targetVersion: number = 0;
@State reqPermissionDetails: bundleManager.ReqPermissionDetail[] = [];

View File

@ -155,7 +155,7 @@ struct globalDialog {
let audioVolumeManager = audioManager.getVolumeManager();
let groupid = audio.DEFAULT_VOLUME_GROUP_ID;
audioVolumeManager.getVolumeGroupManager(groupid).then(audioVolumeGroupManager => {
audioVolumeGroupManager.setMicrophoneMute(false).then(() => {
audioVolumeGroupManager.setMicMute(false).then(() => {
this.context.terminateSelf();
})
})
@ -170,7 +170,7 @@ struct globalDialog {
let audioVolumeManager = audioManager.getVolumeManager();
let groupid = audio.DEFAULT_VOLUME_GROUP_ID;
audioVolumeManager.getVolumeGroupManager(groupid).then(audioVolumeGroupManager => {
audioVolumeGroupManager.setMicrophoneMute(false).then(() => {
audioVolumeGroupManager.setMicMute(false).then(() => {
this.context.terminateSelf();
})
})