mirror of
https://gitee.com/openharmony/applications_mms
synced 2024-11-26 17:30:42 +00:00
commit
c763c9846c
@ -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