Skip to content

Commit

Permalink
Fix: state uid computation was including elements which were not defi…
Browse files Browse the repository at this point in the history
…ned as visible (in previous versions widget isInteractive had that condition instead)
  • Loading branch information
Hotzkow committed Jul 13, 2020
1 parent d7bb859 commit b4a5721
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ open class State<out W: Widget> (_widgets: Collection<W>, val isHomeScreen: Bool
* non-text elements are only considered if they can be acted upon or are leaf elements
*/
protected open fun isRelevantForId(w: Widget): Boolean = ( !isHomeScreen && !w.isKeyboard
&& (w.nlpText.isNotBlank() || w.isInteractive || w.isLeaf() )
&& w.definedAsVisible && (w.nlpText.isNotBlank() || w.isInteractive || w.isLeaf() )
)


Expand Down

0 comments on commit b4a5721

Please sign in to comment.