Merge "Promote isFloating to TestApi" into tm-dev
This commit is contained in:
@@ -464,6 +464,7 @@ package android.app {
|
||||
method @NonNull public android.graphics.Rect getMaxBounds();
|
||||
method public int getRotation();
|
||||
method public int getWindowingMode();
|
||||
method public static boolean isFloating(int);
|
||||
method public void setActivityType(int);
|
||||
method public void setAppBounds(android.graphics.Rect);
|
||||
method public void setBounds(android.graphics.Rect);
|
||||
|
||||
@@ -819,11 +819,8 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu
|
||||
return isFloating(mWindowingMode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the windowingMode represents a floating window.
|
||||
* @hide
|
||||
*/
|
||||
public static boolean isFloating(int windowingMode) {
|
||||
/** Returns true if the windowingMode represents a floating window. */
|
||||
public static boolean isFloating(@WindowingMode int windowingMode) {
|
||||
return windowingMode == WINDOWING_MODE_FREEFORM || windowingMode == WINDOWING_MODE_PINNED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user