From b97226bd223d01cae7393494ff1b1a556909d1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=91=E5=8F=91?= Date: Wed, 6 Nov 2024 10:55:00 +0800 Subject: [PATCH] description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小发发 --- services/aams/src/accessibility_screen_touch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/aams/src/accessibility_screen_touch.cpp b/services/aams/src/accessibility_screen_touch.cpp index 3276c467..e2f5260f 100644 --- a/services/aams/src/accessibility_screen_touch.cpp +++ b/services/aams/src/accessibility_screen_touch.cpp @@ -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 &&