修改codeCheck

Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
zhouhongli2023 2024-05-17 16:12:08 +08:00
parent 398a4c5764
commit 8baa7b2300
3 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ import HiLog from '../utils/HiLog';
const TAG = 'MyAbilityStage';
export default class MyAbilityStage extends AbilityStage {
onCreate() {
onCreate(): void {
HiLog.i(TAG, 'AbilityStage onCreate');
notification.setNotificationEnable({
bundle: 'com.ohos.mms'
@ -28,6 +28,6 @@ export default class MyAbilityStage extends AbilityStage {
if (err) {
HiLog.i(TAG, 'enableNotification err: ' + JSON.stringify(err));
}
})
});
}
}

View File

@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import Ability from '@ohos.app.ability.UIAbility'
import Window from '@ohos.window'
import Ability from '@ohos.app.ability.UIAbility';
import Window from '@ohos.window';
import HiLog from '../utils/HiLog';
import MmsPreferences from '../utils/MmsPreferences';
@ -59,13 +59,13 @@ export default class MainAbility extends Ability {
simCardService.init();
}
onBackground() {
onBackground(): void {
// Ability has back to background
HiLog.i(TAG, 'Ability onBackground');
simCardService.deInit();
}
onDestroy() {
onDestroy(): void {
HiLog.i(TAG, 'Ability onDestroy');
if (globalThis.DataWorker == null || globalThis.DataWorker == undefined) {
return;

View File

@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import MmsBoolean from '../data/MmsBoolean'
import MmsBoolean from '../data/MmsBoolean';
/**
* Options: dual title, 1 switch