mirror of
https://gitee.com/openharmony/applications_permission_manager
synced 2024-11-26 20:50:48 +00:00
适配修复流水线概率性构建失败
Signed-off-by: fanchenxuan <fanchenxuan@huawei.com>
This commit is contained in:
parent
29dedeba6c
commit
9443bf0983
File diff suppressed because one or more lines are too long
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -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[] = [];
|
||||
|
@ -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();
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user