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
This commit is contained in:
Svetoslav
2015-01-28 16:44:02 -08:00
parent 43181fb72d
commit 5738fec00d

View File

@@ -721,7 +721,7 @@ public class AccessibilityNodeInfo implements Parcelable {
* @return Whether the refresh succeeded.
*/
public boolean refresh() {
return refresh(false);
return refresh(true);
}
/**