summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author YoungJoon Yang <youngjoonyang@google.com> 2023-11-23 01:21:34 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-11-23 01:21:34 +0000
commit7b8bd6675ae43dda8e6877ef41b3b31e3975bd6c (patch)
treea932c21b7f1a74deccc39242aa4fed8120cd271c /cmds/bootanimation/BootAnimation.cpp
parente306e0069a801a82a490ea39775b526fa0f638c1 (diff)
parent9cf990e2f22500afdaa31a1450cd32f71638a4f8 (diff)
Merge "Set default rotation and boot animation orientation for logical display" into main
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 89776dba7878..820d2b0d607e 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -675,7 +675,11 @@ ui::Rotation BootAnimation::parseOrientationProperty() {
ss << "ro.bootanim.set_orientation_" << displayId.value;
return ss.str();
}();
- const auto syspropValue = android::base::GetProperty(syspropName, "ORIENTATION_0");
+ auto syspropValue = android::base::GetProperty(syspropName, "");
+ if (syspropValue == "") {
+ syspropValue = android::base::GetProperty("ro.bootanim.set_orientation_logical_0", "");
+ }
+
if (syspropValue == "ORIENTATION_90") {
return ui::ROTATION_90;
} else if (syspropValue == "ORIENTATION_180") {