mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-27 01:01:06 +00:00
update product/phone/src/main/ets/MainAbility/MainAbility.ts.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
eb5a87e83f
commit
31431fb173
@ -171,7 +171,7 @@ export default class MainAbility extends Ability {
|
|||||||
this.isOnDestroy = true;
|
this.isOnDestroy = true;
|
||||||
let statusBarColorController: StatusBarColorController = StatusBarColorController.getInstance();
|
let statusBarColorController: StatusBarColorController = StatusBarColorController.getInstance();
|
||||||
statusBarColorController.release();
|
statusBarColorController.release();
|
||||||
AppStorage.Delete('entryFromHap');
|
AppStorage.delete('entryFromHap');
|
||||||
MediaObserver.getInstance().unregisterForAllPhotos();
|
MediaObserver.getInstance().unregisterForAllPhotos();
|
||||||
MediaObserver.getInstance().unregisterForAllAlbums();
|
MediaObserver.getInstance().unregisterForAllAlbums();
|
||||||
UserFileManagerAccess.getInstance().onDestroy();
|
UserFileManagerAccess.getInstance().onDestroy();
|
||||||
@ -181,7 +181,7 @@ export default class MainAbility extends Ability {
|
|||||||
// Main window is created, set main page for this ability
|
// Main window is created, set main page for this ability
|
||||||
Log.info(TAG, 'Application onWindowStageCreate');
|
Log.info(TAG, 'Application onWindowStageCreate');
|
||||||
AppStorage.setOrCreate('photosWindowStage', windowStage);
|
AppStorage.setOrCreate('photosWindowStage', windowStage);
|
||||||
AppStorage.SetOrCreate('deviceType',
|
AppStorage.setOrCreate('deviceType',
|
||||||
deviceInfo.deviceType == ('phone' || 'default') ? Constants.DEFAULT_DEVICE_TYPE : Constants.PAD_DEVICE_TYPE);
|
deviceInfo.deviceType == ('phone' || 'default') ? Constants.DEFAULT_DEVICE_TYPE : Constants.PAD_DEVICE_TYPE);
|
||||||
ScreenManager.getInstance().on(ScreenManager.ON_LEFT_BLANK_CHANGED, data => {
|
ScreenManager.getInstance().on(ScreenManager.ON_LEFT_BLANK_CHANGED, data => {
|
||||||
Log.info(TAG, `onleftBlankChanged: ${data}`);
|
Log.info(TAG, `onleftBlankChanged: ${data}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user