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

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

Merge "Remove exception for trying to close sessions that aren't active" into udc-qpr-dev

parents 2cc81371 739e3cfb
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -213,9 +213,6 @@ public class WindowAreaComponentImpl implements WindowAreaComponent,
            if (mRearDisplayStateRequest != null || isRearDisplayActive()) {
                mRearDisplayStateRequest = null;
                mDeviceStateManager.cancelStateRequest();
            } else {
                throw new IllegalStateException(
                        "Unable to cancel a rear display session as there is no active session");
            }
        }
    }
@@ -432,10 +429,6 @@ public class WindowAreaComponentImpl implements WindowAreaComponent,
        synchronized (mLock) {
            if (mRearDisplayPresentationController != null) {
                mDeviceStateManager.cancelStateRequest();
            } else {
                throw new IllegalStateException(
                        "Unable to cancel a rear display presentation session as there is no "
                                + "active session");
            }
        }
    }