From 30bf481498abf6d7e87fc6184fd4d2a88edc1f16 Mon Sep 17 00:00:00 2001 From: li-li-wang Date: Thu, 31 Aug 2023 14:25:28 +0800 Subject: [PATCH] =?UTF-8?q?image=E7=BB=84=E4=BB=B6=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=8B=96=E6=8B=BD=EF=BC=8C=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-li-wang --- entry/src/main/ets/ViewAbility/ViewAbility.ts | 2 +- entry/src/main/ets/pages/changeEncryption.ets | 6 ++++++ entry/src/main/ets/pages/encryptionProtection.ets | 2 ++ entry/src/main/ets/pages/encryptionSuccess.ets | 8 ++++++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/entry/src/main/ets/ViewAbility/ViewAbility.ts b/entry/src/main/ets/ViewAbility/ViewAbility.ts index 40c1f42..f7d0f2c 100644 --- a/entry/src/main/ets/ViewAbility/ViewAbility.ts +++ b/entry/src/main/ets/ViewAbility/ViewAbility.ts @@ -166,7 +166,7 @@ export default class ViewAbility extends ServiceExtensionAbility { dlpPermission.DLPFileAccess.READ_ONLY ? true : false } }; - this.startAbility(want, startId) + this.startAbility(want, startId); } async sendDlpFileOpenFault(code: number, sandboxName: string, appIndex: number, reason: string): Promise { diff --git a/entry/src/main/ets/pages/changeEncryption.ets b/entry/src/main/ets/pages/changeEncryption.ets index 5374142..7cef36c 100644 --- a/entry/src/main/ets/pages/changeEncryption.ets +++ b/entry/src/main/ets/pages/changeEncryption.ets @@ -439,6 +439,7 @@ struct changeEncryption { .onClick(() => { this.handlePopupReadOnly = !this.handlePopupReadOnly }) + .draggable(false) .bindPopup(this.handlePopupReadOnly, { builder: this.popupBuilderReadOnly, placement: Placement.Bottom, @@ -478,6 +479,7 @@ struct changeEncryption { .onClick(() => { this.handlePopupReadOnly = !this.handlePopupReadOnly }) + .draggable(false) .bindPopup(this.handlePopupReadOnly, { builder: this.popupBuilderReadOnly, placement: Placement.Bottom, @@ -520,6 +522,7 @@ struct changeEncryption { .customizeText() } Image($r("app.media.icon_change")) + .draggable(false) .width(Constants.PP_IMAGE_HEIGHT) .height(Constants.PP_TEXT_FONT_SIZE2) .objectFit(ImageFit.Contain) @@ -575,6 +578,7 @@ struct changeEncryption { .onClick(() => { this.handlePopupEdit = !this.handlePopupEdit }) + .draggable(false) .bindPopup(this.handlePopupEdit, { builder: this.popupBuilderEdit, placement: Placement.Bottom, @@ -615,6 +619,7 @@ struct changeEncryption { .onClick(() => { this.handlePopupEdit = !this.handlePopupEdit }) + .draggable(false) .bindPopup(this.handlePopupEdit, { builder: this.popupBuilderEdit, placement: Placement.Bottom, @@ -657,6 +662,7 @@ struct changeEncryption { .customizeText() } Image($r("app.media.icon_change")) + .draggable(false) .width(Constants.PP_IMAGE_HEIGHT) .height(Constants.PP_TEXT_FONT_SIZE2) .objectFit(ImageFit.Contain) diff --git a/entry/src/main/ets/pages/encryptionProtection.ets b/entry/src/main/ets/pages/encryptionProtection.ets index 2f460bf..fd2c13e 100644 --- a/entry/src/main/ets/pages/encryptionProtection.ets +++ b/entry/src/main/ets/pages/encryptionProtection.ets @@ -670,6 +670,7 @@ struct DlpDialog { .onClick(() => { this.handlePopupReadOnly = !this.handlePopupReadOnly }) + .draggable(false) .bindPopup(this.handlePopupReadOnly, { builder: this.popupBuilderReadOnly, placement: Placement.Bottom, @@ -717,6 +718,7 @@ struct DlpDialog { .onClick(() => { this.handlePopupEdit = !this.handlePopupEdit }) + .draggable(false) .bindPopup(this.handlePopupEdit, { builder: this.popupBuilderEdit, placement: Placement.Bottom, diff --git a/entry/src/main/ets/pages/encryptionSuccess.ets b/entry/src/main/ets/pages/encryptionSuccess.ets index 84781e9..64fcc97 100644 --- a/entry/src/main/ets/pages/encryptionSuccess.ets +++ b/entry/src/main/ets/pages/encryptionSuccess.ets @@ -154,6 +154,7 @@ struct encryptionSuccess { Scroll() { Column() { Image($r('app.media.finished')) + .draggable(false) .width(Constants.ENCRYPTION_SUCCESS_ICON) .height(Constants.ENCRYPTION_SUCCESS_ICON) .margin({ top: Constants.ENCRYPTION_SUCCESS_IMAGE_MARGIN_TOP }) @@ -191,6 +192,7 @@ struct encryptionSuccess { .fontWeight(FontWeight.Regular) .textAlign(TextAlign.Center) Image($r("app.media.icon_change")) + .draggable(false) .width(Constants.PP_IMAGE_HEIGHT) .height(Constants.PP_TEXT_FONT_SIZE2) .objectFit(ImageFit.Contain) @@ -231,6 +233,7 @@ struct encryptionSuccess { .onClick(() => { this.handlePopupReadOnly = !this.handlePopupReadOnly }) + .draggable(false) .bindPopup(this.handlePopupReadOnly, { builder: this.popupBuilderReadOnly, placement: Placement.Bottom, @@ -270,6 +273,7 @@ struct encryptionSuccess { .onClick(() => { this.handlePopupReadOnly = !this.handlePopupReadOnly }) + .draggable(false) .bindPopup(this.handlePopupReadOnly, { builder: this.popupBuilderReadOnly, placement: Placement.Bottom, @@ -311,6 +315,7 @@ struct encryptionSuccess { .customizeText() } Image($r("app.media.icon_change")) + .draggable(false) .width(Constants.PP_IMAGE_HEIGHT) .height(Constants.PP_TEXT_FONT_SIZE2) .objectFit(ImageFit.Contain) @@ -367,6 +372,7 @@ struct encryptionSuccess { .onClick(() => { this.handlePopupEdit = !this.handlePopupEdit }) + .draggable(false) .bindPopup(this.handlePopupEdit, { builder: this.popupBuilderEdit, placement: Placement.Bottom, @@ -407,6 +413,7 @@ struct encryptionSuccess { .onClick(() => { this.handlePopupEdit = !this.handlePopupEdit }) + .draggable(false) .bindPopup(this.handlePopupEdit, { builder: this.popupBuilderEdit, placement: Placement.Bottom, @@ -449,6 +456,7 @@ struct encryptionSuccess { .customizeText() } Image($r("app.media.icon_change")) + .draggable(false) .width(Constants.PP_IMAGE_HEIGHT) .height(Constants.PP_TEXT_FONT_SIZE2) .objectFit(ImageFit.Contain)