From 7f1f3b21784271939e25943124c7e633fd6560ee Mon Sep 17 00:00:00 2001 From: Marcin Bialek Date: Thu, 31 Mar 2022 12:38:47 +0200 Subject: [PATCH] [Notification] Fix setting nullable properties. Some nullable properties could not be set to null. [Verification] Code compiles. Fixes were tested on an emulator as well. Change-Id: Ifb34d962909369c9f87b5e8958a814b2e5dc50c9 Signed-off-by: Marcin Bialek --- src/notification/notification_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notification/notification_api.js b/src/notification/notification_api.js index 0f77e5dc..3153e0c4 100644 --- a/src/notification/notification_api.js +++ b/src/notification/notification_api.js @@ -764,7 +764,7 @@ function NotificationDetailInfo(mainText, subText) { return _subText; }, set: function(v) { - _subText = type_.isString(v) ? v : _subText; + _subText = type_.isString(v) || type_.isNull(v) ? v : _subText; }, enumerable: true } @@ -1210,7 +1210,7 @@ function NotificationButton(text, appControl, imagePath) { return _imagePath; }, set: function(v) { - _imagePath = type_.isString(v) ? v : _imagePath; + _imagePath = type_.isString(v) || type_.isNull(v) ? v : _imagePath; }, enumerable: true } -- 2.34.1