Merge "Open up #getAspectRatio and #getInsetBounds." into rvc-dev am: e064c531e2 am: 10b70fc72d
Change-Id: I03566f4666d4d9423b107a5388150c0b5085f9db
This commit is contained in:
@@ -126,6 +126,10 @@ public class PipBoundsHandler {
|
|||||||
mCurrentMinSize = minEdgeSize;
|
mCurrentMinSize = minEdgeSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected float getAspectRatio() {
|
||||||
|
return mAspectRatio;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets both shelf visibility and its height if applicable.
|
* Sets both shelf visibility and its height if applicable.
|
||||||
* @return {@code true} if the internal shelf state is changed, {@code false} otherwise.
|
* @return {@code true} if the internal shelf state is changed, {@code false} otherwise.
|
||||||
@@ -419,7 +423,7 @@ public class PipBoundsHandler {
|
|||||||
/**
|
/**
|
||||||
* Populates the bounds on the screen that the PIP can be visible in.
|
* Populates the bounds on the screen that the PIP can be visible in.
|
||||||
*/
|
*/
|
||||||
private void getInsetBounds(Rect outRect) {
|
protected void getInsetBounds(Rect outRect) {
|
||||||
try {
|
try {
|
||||||
mWindowManager.getStableInsets(mContext.getDisplayId(), mTmpInsets);
|
mWindowManager.getStableInsets(mContext.getDisplayId(), mTmpInsets);
|
||||||
outRect.set(mTmpInsets.left + mScreenEdgeInsets.x,
|
outRect.set(mTmpInsets.left + mScreenEdgeInsets.x,
|
||||||
|
|||||||
Reference in New Issue
Block a user