update product/phone/src/main/ets/view/SelectPhotoBrowserView.ets.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2023-07-20 01:26:34 +00:00 committed by Gitee
parent c4f7e49e22
commit 884fa18f92
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -84,7 +84,6 @@ export struct SelectPhotoBrowserView {
aboutToAppear(): void {
Log.info(TAG, 'photoBrowser aboutToAppear');
this.hideBars();
this.geometryTransitionId = AppStorage.Get('geometryTransitionBrowserId')
Log.info(TAG, `photoBrowser aboutToAppear ${this.geometryTransitionId}`);
this.backgroundColorResource = $r('app.color.black');
@ -151,23 +150,12 @@ export struct SelectPhotoBrowserView {
}
aboutToDisappear(): void {
this.showBars()
this.broadCast.release();
this.dataSource.release();
mMultimodalInputManager.unregisterListener();
this.appBroadCast.off(BroadCastConstants.SELECT_PHOTO_BROWSER_BACK_PRESS_EVENT, null);
}
showBars(): void {
this.backgroundColorResource = $r('app.color.default_background_color');
ScreenManager.getInstance().setSystemUi(true);
}
hideBars(): void {
this.backgroundColorResource = $r('app.color.black');
ScreenManager.getInstance().setSystemUi(false);
}
onDataSizeChanged(size: number): void {
Log.info(TAG, `onDataSizeChanged, size is ${size}`);
if (size == 0) {
@ -282,6 +270,7 @@ export struct SelectPhotoBrowserView {
// @ts-ignore
.transition(TransitionEffect.opacity(0))
}
.padding({ bottom: $r('app.float.title_default') })
}
pageTransition() {