mirror of
https://gitee.com/openharmony/applications_screenlock
synced 2024-11-23 06:19:47 +00:00
commit
1cb1b384f3
@ -73,7 +73,7 @@ class ServiceExtAbility extends ServiceExtension {
|
||||
|
||||
private createWindow(name: string) {
|
||||
Log.showDebug(TAG, `createWindow name:${name}`)
|
||||
windowManager.create(this.context, name, 2110).then((win) => {
|
||||
windowManager.create(this.context, name, windowManager.WindowType.TYPE_KEYGUARD).then((win) => {
|
||||
Log.showInfo(TAG, "before begin " + name + " window show!")
|
||||
win.setPreferredOrientation(AUTO_ROTATION_RETRICTED, (err) => {
|
||||
if (err.code) {
|
||||
|
@ -34,7 +34,7 @@ class ServiceExtAbility extends ServiceExtension {
|
||||
|
||||
private createWindow(name: string) {
|
||||
Log.showDebug(TAG, `createWindow name:${name}`)
|
||||
windowManager.create(this.context, name, 2110).then((win) => {
|
||||
windowManager.create(this.context, name, windowManager.WindowType.TYPE_KEYGUARD).then((win) => {
|
||||
win.loadContent("pages/index").then(() => {
|
||||
Log.showInfo(TAG, name + " window loadContent in then! ")
|
||||
win.show().then(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user