!139 修改codeCheck

Merge pull request !139 from zhouhongli2023/master
This commit is contained in:
openharmony_ci 2024-05-17 08:45:37 +00:00 committed by Gitee
commit c763c9846c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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