拨号盘界面解决图片为空情况,还有问题 3110/1 3110/head 3111/target/1
authorluozheng <1732036298@qq.com>
Mon, 19 Jan 2026 07:14:07 +0000 (15:14 +0800)
committerluozheng <1732036298@qq.com>
Mon, 19 Jan 2026 07:14:07 +0000 (15:14 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/applist/src/ApplistAdapter.cpp

index 3ce95f3..f72d791 100644 (file)
@@ -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);