From 01d9fd43de2db059767599037a559fd79a3fed23 Mon Sep 17 00:00:00 2001
From: "Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics"
Date: Wed, 23 Sep 2020 09:32:14 +0200
Subject: [PATCH] [Humanactivitymonitor] Fixed wrong behaviour of
isGestureSupported()
https://code.sec.samsung.net/jira/browse/XWALK-2175
Implementation should not throw NotSupportedError, but return true/false
[Verification] Code compiles without errors.
Change-Id: Ia19893338f9b573a29639b667b3b0b52c6584554
---
src/humanactivitymonitor/gesture_manager.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/humanactivitymonitor/gesture_manager.cc b/src/humanactivitymonitor/gesture_manager.cc
index 1168f4bc..81737a70 100644
--- a/src/humanactivitymonitor/gesture_manager.cc
+++ b/src/humanactivitymonitor/gesture_manager.cc
@@ -223,7 +223,7 @@ PlatformResult GestureManager::IsSupported(const std::string& type, bool* is_sup
}
int ret = gesture_is_supported(type_e, is_supported);
- if (GESTURE_ERROR_NONE != ret) {
+ if (GESTURE_ERROR_NONE != ret && GESTURE_ERROR_NOT_SUPPORTED != ret) {
return LogAndCreateResult(
getErrorCode(ret), "Checking gesture failed",
("Checking gesture failed, error: %d (%s)", ret, get_error_message(ret)));
--
2.34.1