Merge "Defer always on top state when task gets maximized"

This commit is contained in:
Kazuki Takise
2018-07-17 23:56:21 +00:00
committed by Android (Google) Code Review
5 changed files with 47 additions and 8 deletions

View File

@@ -575,7 +575,8 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu
* @hide
*/
public boolean isAlwaysOnTop() {
return mWindowingMode == WINDOWING_MODE_PINNED || mAlwaysOnTop == ALWAYS_ON_TOP_ON;
return mWindowingMode == WINDOWING_MODE_PINNED
|| (mWindowingMode == WINDOWING_MODE_FREEFORM && mAlwaysOnTop == ALWAYS_ON_TOP_ON);
}
/**