Skip to content

Commit

Permalink
feat(android): add Ti.UI.SearchBar focused property
Browse files Browse the repository at this point in the history
Fixes TIMOB-27711
  • Loading branch information
sgtcoolguy committed Jun 22, 2020
1 parent 7b53d67 commit 64c334d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,14 @@ public String getApiName()
{
return "Ti.UI.SearchBar";
}

@Kroll.getProperty(name = "focused")
public boolean isFocused()
{
TiUIView v = peekView();
if (v != null) {
return v.isFocused();
}
return false;
}
}

0 comments on commit 64c334d

Please sign in to comment.