From: luozheng <1732036298@qq.com> Date: Wed, 16 Oct 2024 14:17:05 +0000 (+0800) Subject: 解决播放器声音不能点击bug X-Git-Tag: release_V1.2.70_20241020_135402~5^2~20 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=bdc086218fbbbd91cc2a1396dbaaba82291a14ca;p=mirrors%2FFD230.git 解决播放器声音不能点击bug --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersPresenter.cpp index be5a1f5e7..7c005b015 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersPresenter.cpp @@ -728,13 +728,13 @@ void ButtonOnClickListener::SoundButtonOnClick() WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundButtonOnClick playersView nullptr err"); return; } + playersView->ChangeView(PlayersView::MAIN_MUSICPLAYER_VIEW, PlayersView::MUSIC_VOLUME_CONTROL_VIEW); VolumeSettingView *volumeSettingView = playersView->GetVolumeSettingView(); if(volumeSettingView == nullptr) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundButtonOnClick volumeSettingView nullptr err"); return; } - playersView->ChangeView(PlayersView::MAIN_MUSICPLAYER_VIEW, PlayersView::MUSIC_VOLUME_CONTROL_VIEW); int32_t volume = uapi_systemVolumeGet(); //获取系统音量 WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "current volume = %d", volume); if(volumeSettingView->GetProgress()) {