mirror of
https://github.com/openharmony/applications_launcher.git
synced 2026-07-20 22:47:33 -04:00
+2
-2
@@ -4,8 +4,8 @@
|
||||
{
|
||||
"name": "default",
|
||||
"signingConfig": "default",
|
||||
"compileSdkVersion": 10,
|
||||
"compatibleSdkVersion": 10
|
||||
"compileSdkVersion": 12,
|
||||
"compatibleSdkVersion": 12
|
||||
}
|
||||
],
|
||||
"signingConfigs": [
|
||||
|
||||
@@ -47,12 +47,12 @@ export class MenuInfo {
|
||||
/**
|
||||
* shortcut icon Id
|
||||
*/
|
||||
shortcutIconId = CommonConstants.INVALID_VALUE;
|
||||
shortcutIconId: number | undefined = CommonConstants.INVALID_VALUE;
|
||||
|
||||
/**
|
||||
* shortcut label Id
|
||||
*/
|
||||
shortcutLabelId = CommonConstants.INVALID_VALUE;
|
||||
shortcutLabelId: number | undefined = CommonConstants.INVALID_VALUE;
|
||||
|
||||
/**
|
||||
* bundleName
|
||||
|
||||
@@ -106,9 +106,13 @@ export struct AppGridLayout {
|
||||
menu.bundleName = value.bundleName;
|
||||
menu.moduleName = value.moduleName;
|
||||
menu.onMenuClick = () => {
|
||||
this.mAppGridViewModel.jumpTo(
|
||||
value.wants[0].targetAbility, value.wants[0].targetBundle, value.wants[0].targetModule
|
||||
);
|
||||
if (value.wants) {
|
||||
this.mAppGridViewModel.jumpTo(
|
||||
value.wants[0].targetAbility, value.wants[0].targetBundle, value.wants[0].targetModule
|
||||
);
|
||||
} else {
|
||||
Log.showError(TAG, 'value.wants is undefined or empty');
|
||||
}
|
||||
};
|
||||
value.bundleName == appInfo.bundleName && value.moduleName == appInfo.moduleName && menuInfoList.push(menu);
|
||||
});
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"hvigorVersion": "3.0.9",
|
||||
"modelVersion": "5.0.1",
|
||||
"dependencies": {
|
||||
"@ohos/hvigor-ohos-plugin": "3.0.9"
|
||||
}
|
||||
}
|
||||
+3
-2
@@ -1,9 +1,10 @@
|
||||
{
|
||||
"modelVersion": "5.0.1",
|
||||
"devDependencies": {
|
||||
"@ohos/hypium": "1.0.6"
|
||||
},
|
||||
"name": "launcher",
|
||||
"description": "",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {}
|
||||
}
|
||||
"dependencies": {},
|
||||
}
|
||||
Reference in New Issue
Block a user