Fix noisy pip logs

- Whenever the shelf height changes, we still call into movement bounds
  changed which triggers menu resize even if not in pip

Bug: 183756396
Test: Open/close all apps, ensure no pip logs when not in pip
Change-Id: Ia27be382316f44bb161a0f3beecd6859813d0a66
This commit is contained in:
Winson Chung
2021-04-05 21:42:31 -07:00
parent f906029106
commit f81a67fa5e
2 changed files with 4 additions and 1 deletions

View File

@@ -1011,6 +1011,9 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
/** Moves the PiP menu to the destination bounds. */
public void finishResizeForMenu(Rect destinationBounds) {
if (!isInPip()) {
return;
}
mPipMenuController.movePipMenu(null, null, destinationBounds);
mPipMenuController.updateMenuBounds(destinationBounds);
}

View File

@@ -59,7 +59,7 @@ import java.util.List;
*/
public class PhonePipMenuController implements PipMenuController {
private static final String TAG = "PipMenuActController";
private static final String TAG = "PhonePipMenuController";
private static final boolean DEBUG = false;
public static final int MENU_STATE_NONE = 0;