mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-23 15:10:25 +00:00
update product/phone/src/main/ets/view/SelectPhotoBrowserView.ets.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
c4f7e49e22
commit
884fa18f92
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user