[go: nahoru, domu]

[EXO] Fix ghost view when closing Phone Hub bubble from app stream launcher view

When Phone Hub bubble dismissed from App Streaming Launcher view, the
list will move out of bubble area and visible for a short time after bubble
is closed. This CL fixes the issue by remove all child views before bubble
closed.

Screen recording: https://drive.google.com/file/d/1D39V8sTMHsYjohDZksDqJ6LUaj64jE9T/view?usp=sharing&resourcekey=0-qN6nfBFkxshD8pehf6IdUQ

Tested: manually verified the behavior when collapsing bubble from launcher view.
Bug: b/277652794
Change-Id: I875d25dce3f45be1edd92364ed2b4d5626e302dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4412916
Reviewed-by: Jon Mann <jonmann@chromium.org>
Commit-Queue: Pu Shi <pushi@google.com>
Reviewed-by: Crisrael Lucero <crisrael@google.com>
Cr-Commit-Position: refs/heads/main@{#1128861}
diff --git a/ash/system/phonehub/app_stream_launcher_view.h b/ash/system/phonehub/app_stream_launcher_view.h
index db55554..ffa5de98 100644
--- a/ash/system/phonehub/app_stream_launcher_view.h
+++ b/ash/system/phonehub/app_stream_launcher_view.h
@@ -43,6 +43,7 @@
 
   // PhoneHubContentView:
   phone_hub_metrics::Screen GetScreenForMetrics() const override;
+  void OnBubbleClose() override;
 
   // phonehub::AppStreamLauncherDataModel::Observer:
   void OnAppListChanged() override;