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

Commit 9be4403d authored by Stefan Andonian's avatar Stefan Andonian
Browse files

Fix NPE in ViewCapture test helper

Bug: 300947047
Test: NPE stopped occuring in tests.
Change-Id: I662d3edb937e1949187b0cb96fd840ad8471f1f1
parent d4cbfb73
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -382,6 +382,7 @@ public abstract class ViewCapture {
        }

        void attachToRoot() {
            if (mRoot == null) return;
            mIsActive = true;
            if (mRoot.isAttachedToWindow()) {
                safelyEnableOnDrawListener();