Stop dispatching TaskInfo change when focus changes

This effectively revert f677d826f9, as it
won't issue send TaskInfo to WM shell due to this call.

Bug: 174209413
Bug: 180525887
Test: Builds.
Change-Id: Iab7ba76b969d491e4ac213b179147d93096132ea
This commit is contained in:
Garfield Tan
2021-02-17 10:51:03 -08:00
parent 8963b30f44
commit 7c5f84de42

View File

@@ -5301,7 +5301,8 @@ class Task extends WindowContainer<WindowContainer> {
*/
void onWindowFocusChanged(boolean hasFocus) {
updateShadowsRadius(hasFocus, getSyncTransaction());
dispatchTaskInfoChangedIfNeeded(false /* force */);
// TODO(b/180525887): Un-comment once there is resolution on the bug.
// dispatchTaskInfoChangedIfNeeded(false /* force */);
}
void onPictureInPictureParamsChanged() {