Merge "Make sure PipBoundsHelper (on TVs) receives DisplayInfo" into rvc-dev am: 8c98f79c41
Change-Id: Idf9e926a6ce4d32974da0e21894b2f3724c61700
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user