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;
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);