mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-11-23 07:30:27 +00:00
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:
parent
d7030c7a8b
commit
07595b2b1f
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@
|
||||
/.idea
|
||||
**/build
|
||||
/signature
|
||||
/.hvigor
|
||||
/package.json
|
@ -21,6 +21,7 @@
|
||||
"products": [
|
||||
{
|
||||
"name": "default",
|
||||
"signingConfig": "default"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
3
common/resources/.gitignore
vendored
3
common/resources/.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/node_modules
|
||||
/.preview
|
||||
/build
|
||||
/build
|
||||
/package.json
|
3
common/utils/.gitignore
vendored
3
common/utils/.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/node_modules
|
||||
/.preview
|
||||
/build
|
||||
/build
|
||||
/package.json
|
3
features/.gitignore
vendored
3
features/.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
/node_modules
|
||||
/.preview
|
||||
/build
|
||||
/.cxx
|
||||
/.cxx
|
||||
/package.json
|
@ -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)
|
||||
|
3
product/default/.gitignore
vendored
3
product/default/.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/node_modules
|
||||
/.preview
|
||||
/build
|
||||
/build
|
||||
/package.json
|
@ -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) {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user