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

Commit 32417b30 authored by Shao-Chuan Lee's avatar Shao-Chuan Lee
Browse files

AccessibilityWindowInfo: reset mChildIds to null in clear()

Reset mChildIds to null to match the initial state of A11yWindowInfo,
instead of leaving a reference to an empty list.

Bug: b/132613970
Test: A11yService CTS on ARC++
Change-Id: I72783586c196aa0f757efa015a9b55bdb0b76acb
parent 68a72c22
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -634,9 +634,7 @@ public final class AccessibilityWindowInfo implements Parcelable {
        mId = UNDEFINED_WINDOW_ID;
        mParentId = UNDEFINED_WINDOW_ID;
        mBoundsInScreen.setEmpty();
        if (mChildIds != null) {
            mChildIds.clear();
        }
        mChildIds = null;
        mConnectionId = UNDEFINED_WINDOW_ID;
        mAnchorId = AccessibilityNodeInfo.UNDEFINED_NODE_ID;
        mTitle = null;