Signed-off-by: 18671941053 <zoujunjie6@huawei.com>
This commit is contained in:
18671941053 2024-08-21 15:25:14 +08:00
parent 0230cb2899
commit e207c34555

View File

@ -170,12 +170,7 @@ export class ScreenLockService {
lockScreen() {
Trace.start(Trace.CORE_METHOD_SHOW_LOCK_SCREEN);
Log.showDebug(TAG, `lockScreen`);
let length = parseInt(Router.getLength())
Log.showDebug(TAG, `Router.getLength: ${length}`)
for (let index = 1; index < length; index++) {
Log.showInfo(TAG, `back to index`);
Router.back();
}
//lock the screen
this.screenLockModel.showScreenLockWindow(() => {
Log.showInfo(TAG, `showScreenLockWindow finish`);