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

Commit 632d391f authored by An An Yu's avatar An An Yu Committed by Automerger Merge Worker
Browse files

Merge "Upon double registration just return instead of throwing exception"...

Merge "Upon double registration just return instead of throwing exception" into tm-qpr-dev am: a3be6a17 am: 4601dd22

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20181366



Change-Id: I39c1d87546d4f2222919690fecfea3cb7dfae393
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a4937159 4601dd22
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -117,9 +117,7 @@ public class WindowLayoutComponentImpl implements WindowLayoutComponent {
        if (mWindowLayoutChangeListeners.containsKey(context)
                // In theory this method can be called on the same consumer with different context.
                || mWindowLayoutChangeListeners.containsValue(consumer)) {
            throw new IllegalArgumentException(
                    "Context or Consumer has already been registered for WindowLayoutInfo"
                            + " callback.");
            return;
        }
        if (!context.isUiContext()) {
            throw new IllegalArgumentException("Context must be a UI Context, which should be"