IssueNo: #I62WT6
Description: add log.
Sig: sig-systemapplications
Feature or Bugfix: Bugfix
Binary Source: No

Signed-off-by: jiangwensai <jiangwensai@huawei.com>
This commit is contained in:
jiangwensai 2022-11-24 15:20:40 +08:00 committed by wangzhiyusss
parent d7030c7a8b
commit 65db6e5f71
9 changed files with 23 additions and 9 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@
/.idea
**/build
/signature
/.hvigor
/package.json

View File

@ -21,6 +21,7 @@
"products": [
{
"name": "default",
"signingConfig": "default"
}
]
},

View File

@ -1,3 +1,4 @@
/node_modules
/.preview
/build
/package.json

View File

@ -1,3 +1,4 @@
/node_modules
/.preview
/build
/package.json

1
features/.gitignore vendored
View File

@ -2,3 +2,4 @@
/.preview
/build
/.cxx
/package.json

View File

@ -570,7 +570,7 @@ export struct ToolBarComp {
// 清单
this.controllerShow.runJavaScript({ script: "javascript:RICH_EDITOR.setTodo()" })
// 退出键盘
iinputMethod.getController().stopInputSession();
inputMethod.getController().stopInputSession();
})
}.width(42)
.height(42)

View File

@ -1,3 +1,4 @@
/node_modules
/.preview
/build
/package.json

View File

@ -23,7 +23,6 @@ import { atob } from 'js-base64'
import display from '@ohos.display';
import window from '@ohos.window';
globalThis.rdbStore = undefined
export default class MainAbility extends Ability {
@ -33,11 +32,12 @@ export default class MainAbility extends Ability {
// @ts-ignore
window.getLastWindow(this.context,(err,data)=>{
let windowWidth = data.getWindowProperties().windowRect.width
LogUtil.info(this.Tag, " getLastWindow" + windowWidth)
this.screenBreakPoints(windowWidth)
})
AppStorage.SetOrCreate<boolean>('closeEditContentDialog', true)
LogUtil.info(this.Tag, " onCreate, launchReason is " + launchParam.launchReason)
LogUtil.info(this.Tag, " onCreate, deviceType" + deviceInfo.deviceType)
LogUtil.info(this.Tag, " onCreate, launchReason is " + launchParam.launchReason +
", deviceType" + deviceInfo.deviceType)
if (deviceInfo.deviceType === 'phone' || deviceInfo.deviceType === 'default') {
AppStorage.SetOrCreate<boolean>('Expand', false)
AppStorage.SetOrCreate<boolean>('Choose', true)
@ -203,6 +203,7 @@ export default class MainAbility extends Ability {
displayClass = display.getDefaultDisplaySync()
screenDpi = displayClass.densityDPI
let windowWidth = data / (screenDpi / 160)
LogUtil.debug(this.Tag, " screenBreakPoints windowWidth: " + windowWidth)
if (windowWidth >= 320 && windowWidth < 520 || windowWidth < 320) {
AppStorage.SetOrCreate('breakPoint', 'sm')
} else if (windowWidth >= 520 && windowWidth < 840) {

View File

@ -44,12 +44,18 @@
{
"name": "ohos.permission.DISTRIBUTED_DATASYNC",
"reason": "$string:distributed_dataSync_permission"
},
}
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "true"
}
],
"abilities": [
{
"name": "MainAbility",