mirror of
https://gitee.com/openharmony/applications_mms
synced 2024-11-23 07:39:46 +00:00
修改codeCheck
Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
parent
398a4c5764
commit
8baa7b2300
@ -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));
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user