From edc9f3f1ea2e5d6a8899d5132798c81c582b77e0 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Mon, 19 Jan 2026 15:14:07 +0800 Subject: [PATCH] =?utf8?q?=E6=8B=A8=E5=8F=B7=E7=9B=98=E7=95=8C=E9=9D=A2?= =?utf8?q?=E8=A7=A3=E5=86=B3=E5=9B=BE=E7=89=87=E4=B8=BA=E7=A9=BA=E6=83=85?= =?utf8?q?=E5=86=B5=EF=BC=8C=E8=BF=98=E6=9C=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/applist/src/ApplistAdapter.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/applist/src/ApplistAdapter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/applist/src/ApplistAdapter.cpp index 3ce95f304..f72d79166 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/applist/src/ApplistAdapter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/applist/src/ApplistAdapter.cpp @@ -131,10 +131,11 @@ static void updateCircleListAndSelectImageForDirectClockwise(UIImageView** Circl int tempIndex = (nextstartangle / 30); // 计算 index 和 appIndex int index = tempIndex % nativeAppNum + 11; - int appIndex = index; - if (nextstartangle >= 360) { - appIndex = index % nativeAppNum; - } + int appIndex = index % nativeAppNum; + // int appIndex = index; + // if (nextstartangle >= 360) { + // appIndex = index % nativeAppNum; + // } // 计算 circleIndex int circleIndex = (12 - tempIndex) % 12; @@ -255,10 +256,11 @@ static void updateCircleListAndSelectImageForCounterclockwiseNotDirect(UIImageVi int absnextStartAngle = abs(startangle - (30 - CircleListAdapter::angleIncrement)); if (absnextStartAngle % 30 == 0) { int index = (absnextStartAngle / 30) % nativeAppNum + 11; - int appIndex = index; - if (absnextStartAngle >= 360) { - appIndex = index % nativeAppNum; - } + int appIndex = index % nativeAppNum; + // int appIndex = index; + // if (absnextStartAngle >= 360) { + // appIndex = index % nativeAppNum; + // } int circleIndex = ((absnextStartAngle - 30) / 30 ) % 12; WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "circleIndex:%d,appIndex:%d name:%s", circleIndex, appIndex, ApplistModel::GetInstance().GetApplistItems()[appIndex].iconSmall); WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "startangle小于0的逆时针:circleIndex:%d,appIndex:%d", circleIndex, appIndex); -- 2.17.1