app_list: Not close embedded Assistant UI when open Launcher

When Hotword is detected, it will show Assistant UI in Launcher.
However, we call CloseAssistantUi which will interrupt with the voice
interaction therefore the mic will be closed. This patch limits the
condition that only close ui if not in kLauncherEmbeddedUi.
We also need to correct the app list state when close the embedded ui,
which is required because the app list state is global.

Bug: 924624
Test: manual
Change-Id: I9d5bfc3dbdfa504f06dca2fdde6163a3c46beebe
Reviewed-on: https://chromium-review.googlesource.com/c/1487794
Commit-Queue: Tao Wu <wutao@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636328}
1 file changed