From ceb4428ca5281da801ec8a8aeccd5335219b9f98 Mon Sep 17 00:00:00 2001 From: chen-jiabao41 Date: Thu, 4 Jan 2024 14:39:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=BC=B9=E7=AA=97arkts=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen-jiabao41 Change-Id: I6d73e06f5e2c54f4262f9c7fde54b03289be6fe4 --- .../entry/src/main/ets/pages/notificationDialog.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets index 19def926d..dcdda5936 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets @@ -236,7 +236,7 @@ struct PermissionDialog { try { await this.dialog?.publishButtonClickedEvent(enabled); } catch (err) { - console.error(TAG, `NotificationDialog enable error, code is ${err.code}`); + console.error(TAG, `NotificationDialog enable error, code is ${err?.code}`); } finally { await this.dialog?.destroy(); } -- Gitee From ab918b6d13df10331a11ac65450dfb08c8fab751 Mon Sep 17 00:00:00 2001 From: chen-jiabao41 Date: Thu, 4 Jan 2024 14:49:24 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Revert=20"=E5=BC=B9=E7=AA=97arkts=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E5=A4=84=E7=90=86"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ceb4428ca5281da801ec8a8aeccd5335219b9f98. --- .../entry/src/main/ets/pages/notificationDialog.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets index dcdda5936..19def926d 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets @@ -236,7 +236,7 @@ struct PermissionDialog { try { await this.dialog?.publishButtonClickedEvent(enabled); } catch (err) { - console.error(TAG, `NotificationDialog enable error, code is ${err?.code}`); + console.error(TAG, `NotificationDialog enable error, code is ${err.code}`); } finally { await this.dialog?.destroy(); } -- Gitee From 4c643a71f7013eb9db6959fdae07bfa44929480b Mon Sep 17 00:00:00 2001 From: chen-jiabao41 Date: Thu, 4 Jan 2024 14:54:12 +0800 Subject: [PATCH 3/3] =?UTF-8?q?arkts=E8=AF=AD=E6=B3=95=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen-jiabao41 Change-Id: Ieb0ff05c19beeba93ee3f76aaf2721918edf1aee --- .../entry/src/main/ets/pages/notificationDialog.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets index 19def926d..dcdda5936 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/notificationDialog.ets @@ -236,7 +236,7 @@ struct PermissionDialog { try { await this.dialog?.publishButtonClickedEvent(enabled); } catch (err) { - console.error(TAG, `NotificationDialog enable error, code is ${err.code}`); + console.error(TAG, `NotificationDialog enable error, code is ${err?.code}`); } finally { await this.dialog?.destroy(); } -- Gitee