From 3014ddea64136c1aa44516aae0e0f184c9e2718b Mon Sep 17 00:00:00 2001 From: li-li-wang Date: Tue, 24 Sep 2024 16:04:22 +0800 Subject: [PATCH] =?UTF-8?q?uiExtensionAbility=E7=BB=84=E4=BB=B6=E8=8E=B7?= =?UTF-8?q?=E7=84=A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-li-wang --- AppScope/app.json | 4 ++-- AppScope/app.json5 | 4 ++-- entry/src/main/ets/pages/encryptedSharing.ets | 9 +++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/AppScope/app.json b/AppScope/app.json index 75999b0..c6ae0eb 100644 --- a/AppScope/app.json +++ b/AppScope/app.json @@ -2,8 +2,8 @@ "app": { "bundleName": "com.ohos.dlpmanager", "vendor": "example", - "versionCode": 1000108, - "versionName": "1.0.1.08", + "versionCode": 1000109, + "versionName": "1.0.1.09", "icon": "$media:app_icon", "label": "$string:app_name", "minAPIVersion": 12, diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 0f720fc..0e3bcd2 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -16,8 +16,8 @@ "app": { "bundleName": "com.ohos.dlpmanager", "vendor": "example", - "versionCode": 1000108, - "versionName": "1.0.1.08", + "versionCode": 1000109, + "versionName": "1.0.1.09", "icon": "$media:app_icon", "label": "$string:app_name", "minAPIVersion": 12, diff --git a/entry/src/main/ets/pages/encryptedSharing.ets b/entry/src/main/ets/pages/encryptedSharing.ets index 3851cc8..8395946 100644 --- a/entry/src/main/ets/pages/encryptedSharing.ets +++ b/entry/src/main/ets/pages/encryptedSharing.ets @@ -608,6 +608,15 @@ struct encryptedSharing { 'ability.want.params.uiExtensionType': 'sys/commonUI' } }) + .id('cloudAccountLoginUI') + .onRemoteReady(() => { + try { + HiLog.info(TAG, `requestFocus start`); + this.getUIContext().getFocusController().requestFocus('cloudAccountLoginUI'); + } catch (error) { + HiLog.error(TAG, `requestFocus failed. Cause: ${JSON.stringify(error)}`) + } + }) .onReceive((data) => { HiLog.info(TAG, `data.status: ${JSON.stringify(data.status)}`); let res = data.result as Record;