Merge "Check for stackBounds nullness in showMenu."

This commit is contained in:
TreeHugger Robot
2020-02-10 19:10:02 +00:00
committed by Android (Google) Code Review

View File

@@ -280,7 +280,9 @@ public class PipMenuActivityController {
if (mToActivityMessenger != null) {
Bundle data = new Bundle();
data.putInt(EXTRA_MENU_STATE, menuState);
data.putParcelable(EXTRA_STACK_BOUNDS, stackBounds);
if (stackBounds != null) {
data.putParcelable(EXTRA_STACK_BOUNDS, stackBounds);
}
data.putParcelable(EXTRA_MOVEMENT_BOUNDS, movementBounds);
data.putBoolean(EXTRA_ALLOW_TIMEOUT, allowMenuTimeout);
data.putBoolean(EXTRA_WILL_RESIZE_MENU, willResizeMenu);