From 82b3b06747e0c74f7d85e051cab4510eaef79875 Mon Sep 17 00:00:00 2001 From: tangzhigang1 Date: Fri, 26 May 2023 19:38:34 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20db4486a=20from=20https://gitee.com/zhan?= =?UTF-8?q?gpan19910823/applications=5Fsystemui/pulls/348=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=AE=BE=E7=BD=AE=E8=B0=83=E6=95=B4=E5=A3=B0=E9=9F=B3?= =?UTF-8?q?=E6=9C=AA=E5=90=8C=E6=AD=A5=E8=87=B3=E9=9F=B3=E9=87=8F=E6=9D=A1?= =?UTF-8?q?-26272?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tangzhigang1 --- .../src/main/ets/com/ohos/viewmodel/VolumePanelVM.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/volumepanelcomponent/src/main/ets/com/ohos/viewmodel/VolumePanelVM.ts b/features/volumepanelcomponent/src/main/ets/com/ohos/viewmodel/VolumePanelVM.ts index 17dfe7b8..869751ca 100644 --- a/features/volumepanelcomponent/src/main/ets/com/ohos/viewmodel/VolumePanelVM.ts +++ b/features/volumepanelcomponent/src/main/ets/com/ohos/viewmodel/VolumePanelVM.ts @@ -114,7 +114,7 @@ export class VolumePanelVM { updateVolumeInfo(volumeInfo: VolumeInfo): void { Log.showInfo(TAG, `updateVolumeInfo, volumeInfo: ${JSON.stringify(volumeInfo)} , mCurrentAudioVolumeType: ${this.mCurrentAudioVolumeType}`); - if (!volumeInfo.updateUi && this.mIsMute.get() == volumeInfo.isMute) { + if (!(volumeInfo.updateUi || this.mIsMute.get() != volumeInfo.isMute || VolumeWindowController.getInstance().mIsWindowShown)) { return; } let volumeType = volumeInfo.volumeType; -- Gitee