Loading packages/SystemUI/src/com/android/systemui/pip/tv/PipManager.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -239,6 +239,12 @@ public class PipManager implements BasePipManager, PipTaskOrganizer.PipTransitio mInitialized = true; mInitialized = true; mContext = context; mContext = context; mPipBoundsHandler = pipBoundsHandler; 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() mResizeAnimationDuration = context.getResources() .getInteger(R.integer.config_pipResizeAnimationDuration); .getInteger(R.integer.config_pipResizeAnimationDuration); mPipTaskOrganizer = new PipTaskOrganizer(mContext, mPipBoundsHandler, mPipTaskOrganizer = new PipTaskOrganizer(mContext, mPipBoundsHandler, Loading Loading
packages/SystemUI/src/com/android/systemui/pip/tv/PipManager.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -239,6 +239,12 @@ public class PipManager implements BasePipManager, PipTaskOrganizer.PipTransitio mInitialized = true; mInitialized = true; mContext = context; mContext = context; mPipBoundsHandler = pipBoundsHandler; 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() mResizeAnimationDuration = context.getResources() .getInteger(R.integer.config_pipResizeAnimationDuration); .getInteger(R.integer.config_pipResizeAnimationDuration); mPipTaskOrganizer = new PipTaskOrganizer(mContext, mPipBoundsHandler, mPipTaskOrganizer = new PipTaskOrganizer(mContext, mPipBoundsHandler, Loading