mirror of
https://gitee.com/openharmony/applications_screenlock
synced 2024-11-27 00:21:03 +00:00
zhangAo1016
Signed-off-by: z60042544 <zhangao53@h-partners.com>
This commit is contained in:
parent
69adf9cbb7
commit
b46fa0548a
@ -121,15 +121,19 @@ export class SignalModel {
|
||||
initObserver() {
|
||||
Log.showInfo(TAG, 'initObserver');
|
||||
isInitObserver = true;
|
||||
Observer.on('signalInfoChange', (signalInfoChange) => {
|
||||
this.checkCellularStatus();
|
||||
});
|
||||
Observer.on('networkStateChange', (networkState) => {
|
||||
this.checkCellularStatus();
|
||||
});
|
||||
Observer.on('simStateChange', (simStateInfo) => {
|
||||
this.checkCellularStatus();
|
||||
});
|
||||
try {
|
||||
Observer.on('signalInfoChange', (signalInfoChange) => {
|
||||
this.checkCellularStatus();
|
||||
});
|
||||
Observer.on('networkStateChange', (networkState) => {
|
||||
this.checkCellularStatus();
|
||||
});
|
||||
Observer.on('simStateChange', (simStateInfo) => {
|
||||
this.checkCellularStatus();
|
||||
});
|
||||
} catch {
|
||||
Log.showError(TAG, `systemui Error.`);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user