!193 issue解决:反复快速在开屏与锁屏之间来回切换后,再开屏会导致锁屏壁纸无法加载,即锁屏界面背景变黑。

Merge pull request !193 from chenzhuo/fix_black_screen_0926
This commit is contained in:
openharmony_ci 2024-09-29 02:00:56 +00:00 committed by Gitee
commit 69adf9cbb7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -64,13 +64,13 @@ export default class ScreenLockModel {
hiddenScreenLockWindow(callback: Callback<void>) {
Log.showInfo(TAG, `window hide`);
AppStorage.SetOrCreate('isWallpaperShow', false);
Trace.end(Trace.CORE_METHOD_PASS_ACCOUNT_SYSTEM_RESULT);
windowManager.find(Constants.WIN_NAME).then((win) => {
Trace.start(Trace.CORE_METHOD_HIDE_PSD_PAGE);
win.hide().then(() => {
Log.showInfo(TAG, `window hide`);
callback();
AppStorage.SetOrCreate('isWallpaperShow', false);
})
})
}