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

Commit 5738fec0 authored by Svetoslav's avatar Svetoslav
Browse files

AccessibilityNodeInfo refresh returns a stale state.

AccessibilityNodeInfo refresh was getting the latest cached
state but this is not good enough as an accessibility service
can execute an action on the node and then refresh it to get
the new state.

bug:16954787

Change-Id: I004b4987b8dc423a2ab7031a4fbfe64365ddd7fe
parent 43181fb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -721,7 +721,7 @@ public class AccessibilityNodeInfo implements Parcelable {
     * @return Whether the refresh succeeded.
     */
    public boolean refresh() {
        return refresh(false);
        return refresh(true);
    }

    /**