mirror of
https://github.com/openharmony/applications_permission_manager.git
synced 2026-07-01 20:44:13 -04:00
@@ -149,7 +149,7 @@ struct applicationItem {
|
||||
dialogController: CustomDialogController | null = new CustomDialogController({
|
||||
builder: CustomContentDialog({
|
||||
contentBuilder: () => {
|
||||
this.buildContent();
|
||||
this.buildContentComp();
|
||||
},
|
||||
contentAreaPadding: { left: Constants.PADDING_24, right: Constants.PADDING_24 },
|
||||
buttons: [
|
||||
@@ -214,7 +214,7 @@ struct applicationItem {
|
||||
}
|
||||
|
||||
@Builder
|
||||
buildContent(): void {
|
||||
buildContentComp(): void {
|
||||
Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
|
||||
Column() {
|
||||
Text(this.currentGroup == 'CAMERA' ? $r('app.string.close_camera') : $r('app.string.close_microphone'))
|
||||
|
||||
@@ -181,7 +181,7 @@ struct applicationItem {
|
||||
dialogController: CustomDialogController | null = new CustomDialogController({
|
||||
builder: CustomContentDialog({
|
||||
contentBuilder: () => {
|
||||
this.buildContent();
|
||||
this.buildContentComp();
|
||||
},
|
||||
contentAreaPadding: { left: Constants.PADDING_24, right: Constants.PADDING_24 },
|
||||
buttons: [
|
||||
@@ -205,7 +205,7 @@ struct applicationItem {
|
||||
});
|
||||
|
||||
@Builder
|
||||
buildContent(): void {
|
||||
buildContentComp(): void {
|
||||
Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
|
||||
Column() {
|
||||
Text(this.currentGroup == 'CAMERA' ? $r('app.string.close_camera') : $r('app.string.close_microphone'))
|
||||
|
||||
@@ -69,7 +69,7 @@ struct dialogPlusPage {
|
||||
dialogController: CustomDialogController | null = new CustomDialogController({
|
||||
builder: CustomContentDialog({
|
||||
contentBuilder: () => {
|
||||
this.buildContent();
|
||||
this.buildContentComp();
|
||||
},
|
||||
contentAreaPadding: { right: 0 }
|
||||
}),
|
||||
@@ -104,7 +104,7 @@ struct dialogPlusPage {
|
||||
}
|
||||
|
||||
@Builder
|
||||
buildContent(): void {
|
||||
buildContentComp(): void {
|
||||
Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
|
||||
Column() {
|
||||
Image(this.viewState.grantGroups[this.viewState.curIndex].icon)
|
||||
|
||||
@@ -31,7 +31,7 @@ struct globalSwitch {
|
||||
dialogController: CustomDialogController | null = new CustomDialogController({
|
||||
builder: CustomContentDialog({
|
||||
contentBuilder: () => {
|
||||
this.buildContent();
|
||||
this.buildContentComp();
|
||||
},
|
||||
contentAreaPadding: { left: Constants.PADDING_24, right: Constants.PADDING_24 },
|
||||
buttons: [
|
||||
@@ -58,7 +58,7 @@ struct globalSwitch {
|
||||
});
|
||||
|
||||
@Builder
|
||||
buildContent(): void {
|
||||
buildContentComp(): void {
|
||||
Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
|
||||
Column() {
|
||||
Text(this.viewState.title)
|
||||
|
||||
@@ -82,7 +82,7 @@ function dialogTitle(index: number, securityParams: Array<Param>, isWearable: bo
|
||||
}
|
||||
|
||||
@Builder
|
||||
function dialogContentsArea(params: DialogInfo) {
|
||||
function buildDialogContentsAreaComp(params: DialogInfo) {
|
||||
Column() {
|
||||
Column() {
|
||||
Row() {
|
||||
@@ -170,7 +170,7 @@ struct CustomDialogWearable {
|
||||
build() {
|
||||
Scroll() {
|
||||
Column() {
|
||||
dialogContentsArea({
|
||||
buildDialogContentsAreaComp({
|
||||
index: this.index,
|
||||
securityParams: this.securityParams,
|
||||
appName: this.appName,
|
||||
@@ -259,7 +259,7 @@ struct SecurityDialog {
|
||||
dialogController: CustomDialogController | null = new CustomDialogController({
|
||||
builder: CustomContentDialog({
|
||||
contentBuilder: () => {
|
||||
this.buildContent();
|
||||
this.buildContentComp();
|
||||
},
|
||||
contentAreaPadding: { right: 0 },
|
||||
buttons: [
|
||||
@@ -290,10 +290,10 @@ struct SecurityDialog {
|
||||
});
|
||||
|
||||
@Builder
|
||||
buildContent(): void {
|
||||
buildContentComp(): void {
|
||||
Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
|
||||
Scroll() {
|
||||
dialogContentsArea({
|
||||
buildDialogContentsAreaComp({
|
||||
index: this.index,
|
||||
securityParams: this.securityParams,
|
||||
appName: this.appName,
|
||||
|
||||
Reference in New Issue
Block a user