mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-23 07:00:09 +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;
|
||||
let statusBarColorController: StatusBarColorController = StatusBarColorController.getInstance();
|
||||
statusBarColorController.release();
|
||||
AppStorage.Delete('entryFromHap');
|
||||
AppStorage.delete('entryFromHap');
|
||||
MediaObserver.getInstance().unregisterForAllPhotos();
|
||||
MediaObserver.getInstance().unregisterForAllAlbums();
|
||||
UserFileManagerAccess.getInstance().onDestroy();
|
||||
@ -181,7 +181,7 @@ export default class MainAbility extends Ability {
|
||||
// Main window is created, set main page for this ability
|
||||
Log.info(TAG, 'Application onWindowStageCreate');
|
||||
AppStorage.setOrCreate('photosWindowStage', windowStage);
|
||||
AppStorage.SetOrCreate('deviceType',
|
||||
AppStorage.setOrCreate('deviceType',
|
||||
deviceInfo.deviceType == ('phone' || 'default') ? Constants.DEFAULT_DEVICE_TYPE : Constants.PAD_DEVICE_TYPE);
|
||||
ScreenManager.getInstance().on(ScreenManager.ON_LEFT_BLANK_CHANGED, data => {
|
||||
Log.info(TAG, `onleftBlankChanged: ${data}`);
|
||||
|
Loading…
Reference in New Issue
Block a user