Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 089dab26 authored by Kenneth Ford's avatar Kenneth Ford Committed by Android (Google) Code Review
Browse files

Merge "Returns ACTIVE when rear display presentation mode is active" into udc-qpr-dev

parents 692a8a06 f93bdbcf
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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;
        }