!1523 安全编码问题修改

Merge pull request !1523 from 小发发/accessibility_241106
This commit is contained in:
openharmony_ci 2024-11-06 06:48:01 +00:00 committed by Gitee
commit 97eec74db8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -236,6 +236,11 @@ void AccessibilityScreenTouch::HandleCoordinates(MMI::PointerEvent::PointerItem
startAngle_ = START_ANGLE_PORTRAIT;
break;
case FOLDABLE_DEVICE:
if (FOLDABLE.length() < SUBSCRIPT_TWO) {
HILOG_ERROR("get foldable parameter failed");
ConversionCoordinates(originalX, originalY);
break;
}
if ((displayMgr.GetFoldStatus() == Rosen::FoldStatus::EXPAND &&
FOLDABLE[SUBSCRIPT_TWO] == FOLDABLE_SCREEN_ROTATE) ||
(displayMgr.GetFoldStatus() == Rosen::FoldStatus::FOLDED &&