diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets index 55a0220ad7bf141e581d120620dc0b7fe04c4fac..205d431770e7ef52aa4817f2d6495cb644996839 100644 --- a/entry/src/main/ets/entryability/EntryAbility.ets +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { Configuration, ConfigurationConstant, UIAbility } from '@kit.AbilityKit'; +import { ConfigurationConstant, UIAbility } from '@kit.AbilityKit'; import { hilog } from '@kit.PerformanceAnalysisKit'; import { display, window } from '@kit.ArkUI'; import { CommonConstants } from '../constants/CommonConstants'; @@ -28,15 +28,6 @@ export default class EntryAbility extends UIAbility { this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET); } - onConfigurationUpdate(newConfig: Configuration): void { - let newColorMode: ConfigurationConstant.ColorMode = - newConfig.colorMode || ConfigurationConstant.ColorMode.COLOR_MODE_DARK; - let currentColorMode = AppStorage.get('systemColorMode'); - if (newColorMode !== currentColorMode) { - AppStorage.setOrCreate('systemColorMode', newColorMode); - } - } - onDestroy(): void { hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy'); } @@ -44,7 +35,6 @@ export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage: window.WindowStage): void { // Main window is created, set main page for this ability hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); - windowStage.getMainWindow().then((data: window.Window) => { let type = window.AvoidAreaType.TYPE_NAVIGATION_INDICATOR; let avoidArea = data.getWindowAvoidArea(type); @@ -88,7 +78,7 @@ export default class EntryAbility extends UIAbility { } AppStorage.setOrCreate('breakPoint', curBp); } catch (exception) { - hilog.error(0x0000, 'testTag', `UpdateBreakpoint fail, error message${JSON.stringify(exception)}`); + hilog.error(0x0000, 'testTag', `UpdateBreakpoint fail, error code: ${(exception as BusinessError).code}`); } } diff --git a/entry/src/main/ets/pages/AdaptiveTabCenteringIndex.ets b/entry/src/main/ets/pages/AdaptiveTabCenteringIndex.ets index dd1235ddfce84383451ec5da4b7c790681c62839..32947ec5024a1585cee3a47b1f057084afd4e32f 100644 --- a/entry/src/main/ets/pages/AdaptiveTabCenteringIndex.ets +++ b/entry/src/main/ets/pages/AdaptiveTabCenteringIndex.ets @@ -22,10 +22,7 @@ export struct AdaptiveTabCenteringIndex { @StorageLink('breakPoint') breakPoint: string = CommonConstants.BREAK_POINT_SM; @Consume('pageInfos') pageInfos: NavPathStack; @State tabIndexSelected: number = 0; - @StorageProp('bottomRectHeight') - bottomRectHeight: number = 0; - @StorageProp('topRectHeight') - topRectHeight: number = 0; + @StorageProp('topRectHeight') topRectHeight: number = 0; build() { NavDestination() { diff --git a/entry/src/main/ets/pages/DoubleTabAdaptiveCenteringIndex.ets b/entry/src/main/ets/pages/DoubleTabAdaptiveCenteringIndex.ets index a7c8923ee301582840bb00dc957766af735cc10f..bbe918e6f44f787a91a3ce69c8a782776ea6366a 100644 --- a/entry/src/main/ets/pages/DoubleTabAdaptiveCenteringIndex.ets +++ b/entry/src/main/ets/pages/DoubleTabAdaptiveCenteringIndex.ets @@ -23,10 +23,7 @@ export struct DoubleTabAdaptiveCenteringIndex { @Consume('pageInfos') pageInfos: NavPathStack; @State tabIndexSelected: number = 0; @State tabIndexSelected2: number = 0; - @StorageProp('bottomRectHeight') - bottomRectHeight: number = 0; - @StorageProp('topRectHeight') - topRectHeight: number = 0; + @StorageProp('topRectHeight') topRectHeight: number = 0; build() { NavDestination() { diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index e222d3927fdc270609a5365045825a84b98d0e12..5c0812e597479e26cb4e8c41804b13a06bdf1b80 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -31,10 +31,8 @@ class DirectoryItem { struct Index { @Provide('pageInfos') pageInfos: NavPathStack = new NavPathStack(); @StorageLink('breakPoint') breakPoint: string = CommonConstants.BREAK_POINT_SM; - @StorageProp('bottomRectHeight') - bottomRectHeight: number = 0; - @StorageProp('topRectHeight') - topRectHeight: number = 0; + @StorageProp('bottomRectHeight') bottomRectHeight: number = 0; + @StorageProp('topRectHeight') topRectHeight: number = 0; private title: string | Resource = $r('app.string.EntryAbility_label'); private directory: DirectoryItem[] = [ { diff --git a/entry/src/main/ets/pages/TableAdaptiveExtensionIndex.ets b/entry/src/main/ets/pages/TableAdaptiveExtensionIndex.ets index c2e8be80a0b085949025de53db8fcd9278a795e9..098faab0b8d5392781d70ae6a90fd94846c9dea7 100644 --- a/entry/src/main/ets/pages/TableAdaptiveExtensionIndex.ets +++ b/entry/src/main/ets/pages/TableAdaptiveExtensionIndex.ets @@ -22,10 +22,7 @@ export struct TableAdaptiveExtensionIndex { @StorageLink('breakPoint') breakPoint: string = CommonConstants.BREAK_POINT_SM; @Consume('pageInfos') pageInfos: NavPathStack; @State tabIndexSelected: number = 0; - @StorageProp('bottomRectHeight') - bottomRectHeight: number = 0; - @StorageProp('topRectHeight') - topRectHeight: number = 0; + @StorageProp('topRectHeight') topRectHeight: number = 0; @Builder Item(item: Resource, index: number, color: string) { diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 96dec6c8a77f6c9763b410d7b9943a6d02851931..2a6211e7fb2415dc95f717320a34dbe096ae53a7 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -94,7 +94,7 @@ }, { "name": "beijing_stock_exchange", - "value": "Beijing Stock Exchange" + "value": "Stock Exchange" }, { "name": "indicator_name", diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index b4255b2fb199191af47409df0ab7d308c7be5fe5..c8fedd181534f3440ce45e84cdff18ddfbfd0392 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -94,7 +94,7 @@ }, { "name": "beijing_stock_exchange", - "value": "Beijing Stock Exchange" + "value": "Stock Exchange" }, { "name": "indicator_name", diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index 67adbcf6b869fd6e1e72539b0c0fa90cb1b0ffa4..53f9ddd2e0516d8e453be2545f31f3d13dda7da5 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -94,7 +94,7 @@ }, { "name": "beijing_stock_exchange", - "value": "北交所" + "value": "交易所" }, { "name": "indicator_name",