mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-23 14:30:06 +00:00
Merge branch 'master' of https://gitee.com/openharmony/applications_settings
This commit is contained in:
commit
624ffe90be
@ -103,6 +103,7 @@ export default struct SearchHeader {
|
||||
});
|
||||
}
|
||||
}
|
||||
.hitTestBehavior(HitTestMode.Transparent)
|
||||
}
|
||||
.width('100%')
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ struct DeviceName {
|
||||
prompt.showToast({
|
||||
message: value,
|
||||
duration: 2000,
|
||||
bottom: 1000
|
||||
bottom: 100
|
||||
})
|
||||
})
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ struct PasswordCheck {
|
||||
private prevPageUri: string = undefined;
|
||||
private pinChallenge: string = undefined;
|
||||
private timerId: number = -1;
|
||||
private freezingTimeFlag = undefined;
|
||||
|
||||
@State private passwordType: number = -1;
|
||||
@State private promptMessage: any = '';
|
||||
@ -303,6 +304,9 @@ struct PasswordCheck {
|
||||
|
||||
this.freezingTimeForView = this.freezingTime / 1000;
|
||||
LogUtil.info(this.TAG_PAGE + `freezeView freezingTimeForView = ${this.freezingTimeForView}`);
|
||||
this.freezingTimeFlag = setTimeout(() => {
|
||||
this.freezingTimeForView = 0;
|
||||
}, this.freezingTime);
|
||||
this.timerId = setInterval(() => {
|
||||
if (this.freezingTimeForView <= 0) {
|
||||
this.stopCountDown();
|
||||
@ -323,8 +327,8 @@ struct PasswordCheck {
|
||||
stopCountDown() {
|
||||
// for freezing view
|
||||
if (this.timerId > 0) {
|
||||
clearTimeout(this.timerId);
|
||||
clearInterval(this.freezingTimeForView);
|
||||
clearTimeout(this.freezingTimeFlag);
|
||||
clearInterval(this.timerId);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user