Signed-off-by: liujuan <liujuan76@h-partners.com>

Changes to be committed:
This commit is contained in:
liujuan 2024-03-04 09:36:18 +08:00
parent b6b03909c9
commit 3c8a8be27b
10 changed files with 13 additions and 13 deletions

View File

@ -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 {

View File

@ -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));
}

View File

@ -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);

View File

@ -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: {

View File

@ -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();

View File

@ -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;

View File

@ -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();

View File

@ -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;

View File

@ -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() {

View File

@ -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;