Commit 716601fe authored by Xiaohui Chen's avatar Xiaohui Chen Committed by Commit Bot

Update applist button ring opacity

Bug: b:110418485
Test: build and run locally, see ring status change.
Change-Id: Id0e6d6d2cd85b7774feb19cc4dba665eb5b358cc
Reviewed-on: https://chromium-review.googlesource.com/1162829
Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org>
Reviewed-by: default avatarTao Wu <wutao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580720}
parent 5fa8a654
......@@ -203,6 +203,10 @@ void AssistantUiController::OnUrlOpened(const GURL& url) {
void AssistantUiController::OnUiVisibilityChanged(bool visible,
AssistantSource source) {
Shell::Get()->voice_interaction_controller()->NotifyStatusChanged(
visible ? mojom::VoiceInteractionState::RUNNING
: mojom::VoiceInteractionState::STOPPED);
if (visible)
return;
......
......@@ -61,9 +61,12 @@ void AssistantClient::MaybeInit(service_manager::Connector* connector) {
}
void AssistantClient::OnAssistantStatusChanged(bool running) {
// |running| means assistent mojom service is running. This maps to
// |STOPPED| and |NOT_READY|. |RUNNING| maps to UI is shown and an assistant
// session is running.
arc::VoiceInteractionControllerClient::Get()->NotifyStatusChanged(
running ? ash::mojom::VoiceInteractionState::RUNNING
: ash::mojom::VoiceInteractionState::STOPPED);
running ? ash::mojom::VoiceInteractionState::STOPPED
: ash::mojom::VoiceInteractionState::NOT_READY);
}
void AssistantClient::RequestAssistantStructure(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment