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

Commit 5cfcb5cc authored by Felipe Leme's avatar Felipe Leme
Browse files

Don't create WindowNode on windows with dettached view.

Test: manual verification
Fixes: 63788161

Change-Id: I1c193495753fc6f8b23bab602463d3b1234e325f
parent 747938ed
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1905,6 +1905,10 @@ public class AssistStructure implements Parcelable {
                activity.getActivityToken());
        for (int i=0; i<views.size(); i++) {
            ViewRootImpl root = views.get(i);
            if (root.getView() == null) {
                Log.w(TAG, "Skipping window with dettached view: " + root.getTitle());
                continue;
            }
            mWindowNodes.add(new WindowNode(this, root, forAutoFill, flags));
        }
    }