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

Commit f93bdbcf authored by Kenneth Ford's avatar Kenneth Ford
Browse files

Returns ACTIVE when rear display presentation mode is active

Fixes: 290985918
Test: ExtensionRearDisplayPresentationModeTest (main branch)
Change-Id: I96f41bfccbfa311ddd0fe3ae8fce46e15f2ab25b
parent ed773a0d
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;
        }