zhangAo1016

Signed-off-by: z60042544 <zhangao53@h-partners.com>
This commit is contained in:
z60042544 2024-10-16 16:06:02 +08:00
parent 69adf9cbb7
commit b46fa0548a

View File

@ -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.`);
}
}
/**