mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-26 16:51:35 +00:00
Signed-off-by: liujuan <liujuan76@h-partners.com>
Changes to be committed:
This commit is contained in:
parent
b6b03909c9
commit
3c8a8be27b
@ -55,7 +55,7 @@ export class StatusBarColorController {
|
||||
}
|
||||
|
||||
public release() {
|
||||
AppStorage.Delete(Constants.APP_KEY_STATUS_BAR_COLOR_CONTROLLER);
|
||||
AppStorage.delete(Constants.APP_KEY_STATUS_BAR_COLOR_CONTROLLER);
|
||||
}
|
||||
|
||||
private invalidate(): void {
|
||||
|
@ -308,7 +308,7 @@ export class UiUtil {
|
||||
|
||||
static getRouterParams(params: Object): Object {
|
||||
let fakeRouterParam: Object = AppStorage.Get('fakeRouterParam');
|
||||
AppStorage.Delete('fakeRouterParam');
|
||||
AppStorage.delete('fakeRouterParam');
|
||||
if (fakeRouterParam) {
|
||||
Log.debug(TAG, 'fakeRouterParam = ' + JSON.stringify(fakeRouterParam));
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ export struct PhotoItem {
|
||||
aboutToDisappear(): void {
|
||||
Log.info(TAG, `aboutToDisappear ${this.item.uri}`);
|
||||
if (this.currentIndex == this.mPosition) {
|
||||
AppStorage.Delete(PhotoConstants.MATRIX);
|
||||
AppStorage.delete(PhotoConstants.MATRIX);
|
||||
}
|
||||
if (this.dataSource) {
|
||||
this.broadCast.off(BroadCastConstants.ON_DATA_RELOADED, this.onDataReloadFunc);
|
||||
|
@ -163,10 +163,10 @@ export class MoveOrCopyBroadCastProp {
|
||||
|
||||
if (isNewAlbum) {
|
||||
selectManager.onModeChange(false);
|
||||
AppStorage.Delete(Constants.APP_KEY_NEW_ALBUM);
|
||||
AppStorage.Delete(Constants.APP_KEY_NEW_ALBUM_TARGET);
|
||||
AppStorage.Delete(Constants.APP_KEY_NEW_ALBUM_TARGET_URI);
|
||||
AppStorage.Delete(Constants.APP_KEY_NEW_ALBUM_SELECTED);
|
||||
AppStorage.delete(Constants.APP_KEY_NEW_ALBUM);
|
||||
AppStorage.delete(Constants.APP_KEY_NEW_ALBUM_TARGET);
|
||||
AppStorage.delete(Constants.APP_KEY_NEW_ALBUM_TARGET_URI);
|
||||
AppStorage.delete(Constants.APP_KEY_NEW_ALBUM_SELECTED);
|
||||
router.pushUrl({
|
||||
url: 'pages/PhotoGridPage',
|
||||
params: {
|
||||
|
@ -138,7 +138,7 @@ export class FormController implements FormListener {
|
||||
|
||||
let context: common.UIAbilityContext = AppStorage.get<common.UIAbilityContext>('formContext');
|
||||
context.startAbility(param).then((): void => {
|
||||
AppStorage.Delete(Constants.FROM_CONTROLLER_MANAGER);
|
||||
AppStorage.delete(Constants.FROM_CONTROLLER_MANAGER);
|
||||
})
|
||||
|
||||
this.onDestroy();
|
||||
|
@ -628,7 +628,7 @@ export struct TimelinePage {
|
||||
this.isSelectedMode = false;
|
||||
this.mSelectManager.onModeChange(false);
|
||||
this.updateGroupSelectMode();
|
||||
AppStorage.Delete(Constants.PHOTO_GRID_SELECT_MANAGER);
|
||||
AppStorage.delete(Constants.PHOTO_GRID_SELECT_MANAGER);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -169,7 +169,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();
|
||||
|
@ -184,7 +184,7 @@ export struct AlbumSelect {
|
||||
if (action.actionID === Action.CANCEL.actionID) {
|
||||
Log.info(TAG, 'clear SelectManager data');
|
||||
this.mSelectManager.onModeChange(false);
|
||||
AppStorage.Delete(Constants.APP_KEY_NEW_ALBUM_SELECTED);
|
||||
AppStorage.delete(Constants.APP_KEY_NEW_ALBUM_SELECTED);
|
||||
router.back();
|
||||
}
|
||||
return;
|
||||
|
@ -341,7 +341,7 @@ export struct NewAlbumPage {
|
||||
this.appBroadCast.off(BroadCastConstants.UPDATE_DATA_SOURCE, this.onUpdateFavorStateFunc);
|
||||
this.dataSource.releaseBroadCast();
|
||||
ScreenManager.getInstance().off(ScreenManager.ON_WIN_SIZE_CHANGED, this.onWindowSizeChangeCallBack);
|
||||
AppStorage.Delete(Constants.PHOTO_GRID_SELECT_MANAGER);
|
||||
AppStorage.delete(Constants.PHOTO_GRID_SELECT_MANAGER);
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -1367,7 +1367,7 @@ export struct PhotoBrowserComponent {
|
||||
} else {
|
||||
let key: string = 'renameResult' + currentPhoto.uri;
|
||||
renameResult = AppStorage.get<TitleName>(key) as TitleName;
|
||||
AppStorage.Delete(key);
|
||||
AppStorage.delete(key);
|
||||
}
|
||||
Log.debug(TAG, `syncPhotoName end, renameResult : ${JSON.stringify(renameResult)}`);
|
||||
return renameResult;
|
||||
|
Loading…
Reference in New Issue
Block a user