len = APP_MAX_NUM - nativeAppNumTotal;
}
while (len--) {
- applist[appLen] = {
- VIEW_EXTERN_APP,
- bundleInfos[len].smallIconPath,
- bundleInfos[len].bigIconPath,
- bundleInfos[len].label,
- bundleInfos[len].bundleName
- };
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ResolvingJSAppItems bundleName is %s \r", bundleInfos[len].bundleName);
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ResolvingJSAppItems label is %s \r", bundleInfos[len].label);
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ResolvingJSAppItems smallIconPath is %s \r", bundleInfos[len].smallIconPath);
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ResolvingJSAppItems bigIconPath is %s \r", bundleInfos[len].bigIconPath);
+ // applist[appLen] = {
+ // VIEW_EXTERN_APP,
+ // bundleInfos[len].smallIconPath,
+ // bundleInfos[len].bigIconPath,
+ // bundleInfos[len].label,
+ // bundleInfos[len].bundleName
+ // };
+ applist[appLen].id = VIEW_EXTERN_APP;
+ applist[appLen].iconLarge = bundleInfos[len].smallIconPath;
+ applist[appLen].iconSmall = bundleInfos[len].smallIconPath;
+ applist[appLen].iconHexagon = bundleInfos[len].bigIconPath;
+ applist[appLen].label = bundleInfos[len].label;
+ applist[appLen].uid = bundleInfos[len].bundleName;
+
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ResolvingJSAppItems bundleName is %s \r", bundleInfos[len].bundleName);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ResolvingJSAppItems label is %s \r", bundleInfos[len].label);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ResolvingJSAppItems smallIconPath is %s \r", bundleInfos[len].smallIconPath);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ResolvingJSAppItems bigIconPath is %s \r", bundleInfos[len].bigIconPath);
appLen++;
bundleInfos[len].abilityInfo = nullptr;
}