Merge "Make sure PipBoundsHelper (on TVs) receives DisplayInfo" into rvc-dev am: 8c98f79c41 am: 1048073b60

Change-Id: I8a42c372a51cb88eec75a3dc1f69de5897eaf736
This commit is contained in:
TreeHugger Robot
2020-04-10 18:07:44 +00:00
committed by Automerger Merge Worker

View File

@@ -239,6 +239,12 @@ public class PipManager implements BasePipManager, PipTaskOrganizer.PipTransitio
mInitialized = true;
mContext = context;
mPipBoundsHandler = pipBoundsHandler;
// Ensure that we have the display info in case we get calls to update the bounds before the
// listener calls back
final DisplayInfo displayInfo = new DisplayInfo();
context.getDisplay().getDisplayInfo(displayInfo);
mPipBoundsHandler.onDisplayInfoChanged(displayInfo);
mResizeAnimationDuration = context.getResources()
.getInteger(R.integer.config_pipResizeAnimationDuration);
mPipTaskOrganizer = new PipTaskOrganizer(mContext, mPipBoundsHandler,