mirror of
https://gitee.com/openharmony/applications_screenlock
synced 2024-11-27 00:21:03 +00:00
!193 issue解决:反复快速在开屏与锁屏之间来回切换后,再开屏会导致锁屏壁纸无法加载,即锁屏界面背景变黑。
Merge pull request !193 from chenzhuo/fix_black_screen_0926
This commit is contained in:
commit
69adf9cbb7
@ -64,13 +64,13 @@ export default class ScreenLockModel {
|
|||||||
|
|
||||||
hiddenScreenLockWindow(callback: Callback<void>) {
|
hiddenScreenLockWindow(callback: Callback<void>) {
|
||||||
Log.showInfo(TAG, `window hide`);
|
Log.showInfo(TAG, `window hide`);
|
||||||
|
AppStorage.SetOrCreate('isWallpaperShow', false);
|
||||||
Trace.end(Trace.CORE_METHOD_PASS_ACCOUNT_SYSTEM_RESULT);
|
Trace.end(Trace.CORE_METHOD_PASS_ACCOUNT_SYSTEM_RESULT);
|
||||||
windowManager.find(Constants.WIN_NAME).then((win) => {
|
windowManager.find(Constants.WIN_NAME).then((win) => {
|
||||||
Trace.start(Trace.CORE_METHOD_HIDE_PSD_PAGE);
|
Trace.start(Trace.CORE_METHOD_HIDE_PSD_PAGE);
|
||||||
win.hide().then(() => {
|
win.hide().then(() => {
|
||||||
Log.showInfo(TAG, `window hide`);
|
Log.showInfo(TAG, `window hide`);
|
||||||
callback();
|
callback();
|
||||||
AppStorage.SetOrCreate('isWallpaperShow', false);
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user