Merge "libexternal: change action safe property to persist"
diff --git a/libexternal/external.cpp b/libexternal/external.cpp
index e3de5ce..3e92f53 100644
--- a/libexternal/external.cpp
+++ b/libexternal/external.cpp
@@ -247,9 +247,9 @@
char actionsafeWidth[PROPERTY_VALUE_MAX];
char actionsafeHeight[PROPERTY_VALUE_MAX];
snprintf(actionsafeWidth, sizeof(actionsafeWidth), "%d", w);
- property_set("hw.actionsafe.width", actionsafeWidth);
+ property_set("persist.sys.actionsafe.width", actionsafeWidth);
snprintf(actionsafeHeight, sizeof(actionsafeHeight), "%d", h);
- property_set("hw.actionsafe.height", actionsafeHeight);
+ property_set("persist.sys.actionsafe.height", actionsafeHeight);
setExternalDisplay(true, mHdmiFbNum);
}
diff --git a/libhwcomposer/hwc_utils.cpp b/libhwcomposer/hwc_utils.cpp
index f714bb4..746f0c3 100644
--- a/libhwcomposer/hwc_utils.cpp
+++ b/libhwcomposer/hwc_utils.cpp
@@ -251,9 +251,9 @@
char value[PROPERTY_VALUE_MAX];
// Apply action safe parameters
- property_get("hw.actionsafe.width", value, "0");
+ property_get("persist.sys.actionsafe.width", value, "0");
int asWidthRatio = atoi(value);
- property_get("hw.actionsafe.height", value, "0");
+ property_get("persist.sys.actionsafe.height", value, "0");
int asHeightRatio = atoi(value);
// based on the action safe ratio, get the Action safe rectangle
asW = fbWidth * (1.0f - asWidthRatio / 100.0f);