diff options
| author | 2023-11-23 01:21:34 +0000 | |
|---|---|---|
| committer | 2023-11-23 01:21:34 +0000 | |
| commit | 7b8bd6675ae43dda8e6877ef41b3b31e3975bd6c (patch) | |
| tree | a932c21b7f1a74deccc39242aa4fed8120cd271c /cmds/bootanimation/BootAnimation.cpp | |
| parent | e306e0069a801a82a490ea39775b526fa0f638c1 (diff) | |
| parent | 9cf990e2f22500afdaa31a1450cd32f71638a4f8 (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.cpp | 6 | 
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") {  |