diff options
| author | 2023-08-24 21:38:33 +0000 | |
|---|---|---|
| committer | 2023-08-24 21:38:33 +0000 | |
| commit | 089dab26c51e2d8f1e7c0093f5fb6cad96569220 (patch) | |
| tree | a0605ecb322d34498d8f728878f8143c5e1939db /libs | |
| parent | 692a8a066fe8fdef05eff9cd4cdf9a73b2aa9854 (diff) | |
| parent | f93bdbcf7fc19f26c5d7534c8e26e04d8cf4c049 (diff) | |
Merge "Returns ACTIVE when rear display presentation mode is active" into udc-qpr-dev
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/WindowManager/Jetpack/src/androidx/window/extensions/area/WindowAreaComponentImpl.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/WindowAreaComponentImpl.java b/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/WindowAreaComponentImpl.java index 1e6e50359cf3..0112e32e05a7 100644 --- a/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/WindowAreaComponentImpl.java +++ b/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/WindowAreaComponentImpl.java @@ -518,8 +518,11 @@ public class WindowAreaComponentImpl implements WindowAreaComponent, return WindowAreaComponent.STATUS_UNSUPPORTED; } - if (mCurrentDeviceState == mConcurrentDisplayState - || !ArrayUtils.contains(mCurrentSupportedDeviceStates, mConcurrentDisplayState) + if (mCurrentDeviceState == mConcurrentDisplayState) { + return WindowAreaComponent.STATUS_ACTIVE; + } + + if (!ArrayUtils.contains(mCurrentSupportedDeviceStates, mConcurrentDisplayState) || isDeviceFolded()) { return WindowAreaComponent.STATUS_UNAVAILABLE; } |