From b6ee0af46043e16949db3c451fc80be7e7ddf018 Mon Sep 17 00:00:00 2001 From: inter515 Date: Thu, 4 Aug 2022 15:17:13 +0800 Subject: [PATCH] =?UTF-8?q?page=E7=B1=BB=E5=9E=8Bability=E4=B8=AD=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E9=85=8D=E7=BD=AEorientation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: inter515 --- .../entry/src/main/js/test/ExampleJsunit.test.js | 3 +-- .../sceneProject/bmsscenefive/src/main/config.json | 1 - .../sceneProject/bmsscenesix/src/main/config.json | 1 + .../sceneProject/bmsscenethree/src/main/config.json | 3 +-- .../sceneProject/bmsscenetwo/src/main/config.json | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js index ee1881b8d..12fd8e178 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js +++ b/appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js @@ -1141,14 +1141,13 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.name).assertEqual("com.example.myapplication.MainAbility"); expect(datainfo.type).assertEqual(demo.AbilityType.DATA); expect(datainfo.bundleName).assertEqual(NAME4); - expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.FOLLOW_RECENT); queryResultCount++; } if (datainfo.bundleName == NAME5) { expect(datainfo.name).assertEqual("com.example.myapplication.MainAbility"); expect(datainfo.type).assertEqual(demo.AbilityType.PAGE); expect(datainfo.bundleName).assertEqual(NAME5); - expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.UNSPECIFIED); + expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.FOLLOW_RECENT); queryResultCount++; } } diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/config.json index 9b4498480..1a187fcb2 100644 --- a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/config.json +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/config.json @@ -45,7 +45,6 @@ "isVisible": "true", "launchType": "standard", "language": "C++", - "orientation": "followrecent", "uri":"dataability://" } ], diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/config.json index f404b3a6a..3fb7c015b 100644 --- a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/config.json +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/config.json @@ -44,6 +44,7 @@ "type": "page", "isVisible": "true", "launchType": "standard", + "orientation": "followrecent", "language": "C++" } ], diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/config.json index 34bc79ed3..56d1e4d3b 100644 --- a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/config.json +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/config.json @@ -40,8 +40,7 @@ "type": "service", "isVisible": "true", "launchType": "singleton", - "language": "C++", - "orientation": "landscape" + "language": "C++" } ], "deviceType": [ diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/config.json index 33f6de1c0..d5fd38bc9 100644 --- a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/config.json +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/config.json @@ -40,7 +40,7 @@ "icon": "$media:icon", "description": "$string:mainability_description", "label": "$string:app_name", - "type": "service", + "type": "page", "isVisible": "true", "launchType": "singleton", "language": "C++", -- GitLab