summaryrefslogtreecommitdiff
path: root/camera
diff options
context:
space:
mode:
authorShuzhen Wang <shuzhenwang@google.com>2017-08-09 11:12:20 -0700
committerShuzhen Wang <shuzhenwang@google.com>2017-08-14 13:01:24 -0700
commita4ea9b1883467872854b5a8486cea0f1ac2816a7 (patch)
tree0d97404417511290554eda458051d03676185497 /camera
parent411a501fb72ad00dab307bcaf32d565b93564da8 (diff)
QCamera2: HAL3: Use property_get_int32 for mobicat property
property_get_bool only returns true/false. If the property is set to 2, property_get_bool returns 0. Test: Manually test GoogleCamera with 3A debug turned on Bug: 64614329 Change-Id: Ic5597cd9683f4d0fc5383bf4963e186822d7e0eb
Diffstat (limited to 'camera')
-rw-r--r--camera/QCamera2/HAL3/QCamera3HWI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index 7dfc6813..1b85f9f1 100644
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -434,7 +434,7 @@ QCamera3HardwareInterface::QCamera3HardwareInterface(uint32_t cameraId,
property_get("persist.camera.avtimer.debug", prop, "0");
m_debug_avtimer = (uint8_t)atoi(prop);
- m_MobicatMask = property_get_bool("persist.camera.mobicat", 0);
+ m_MobicatMask = (uint8_t)property_get_int32("persist.camera.mobicat", 0);
//Load and read GPU library.
lib_surface_utils = NULL;