From: Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics
Date: Wed, 23 Sep 2020 07:32:14 +0000 (+0200)
Subject: [Humanactivitymonitor] Fixed wrong behaviour of isGestureSupported()
X-Git-Tag: submit/tizen/20200923.101308~1^2^2^2~1
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01d9fd43de2db059767599037a559fd79a3fed23;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[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
---
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)));