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

Commit 6c4ac4b2 authored by Adrian Roos's avatar Adrian Roos Committed by Automerger Merge Worker
Browse files

Merge "WindowInsetsController: make available after addView" into rvc-dev am:...

Merge "WindowInsetsController: make available after addView" into rvc-dev am: 1cd9750a am: 1e672d55 am: 9978475d

Change-Id: Id39f0cd3411becf06b9fccb8cd09e48874cda2c9
parents 5f5cdb27 9978475d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -11519,6 +11519,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        ViewParent parent = getParent();
        if (parent instanceof View) {
            return ((View) parent).getWindowInsetsController();
        } else if (parent instanceof ViewRootImpl) {
            // Between WindowManager.addView() and the first traversal AttachInfo isn't set yet.
            return ((ViewRootImpl) parent).getInsetsController();
        }
        return null;
    }