diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-01-18 23:53:09 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-01-18 23:53:09 +0000 |
commit | 8c3420c5f10bcde9475835d8e93aa2b6cb5a9d17 (patch) | |
tree | 3eb39e7d9d3b990ce76119acd1dd231f4611fd35 /java/com/android/dialer/main/impl/toolbar/MainToolbar.java | |
parent | 5f8c7c7637a7dcb2c1b7e54565191d7f357d0336 (diff) | |
parent | 3b735de1525313b0517473aff849914b1722a445 (diff) |
Merge "Fixed regression with search not reacting properly to on touch events."
Diffstat (limited to 'java/com/android/dialer/main/impl/toolbar/MainToolbar.java')
-rw-r--r-- | java/com/android/dialer/main/impl/toolbar/MainToolbar.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/java/com/android/dialer/main/impl/toolbar/MainToolbar.java b/java/com/android/dialer/main/impl/toolbar/MainToolbar.java index 388815a1e..6e38d2e64 100644 --- a/java/com/android/dialer/main/impl/toolbar/MainToolbar.java +++ b/java/com/android/dialer/main/impl/toolbar/MainToolbar.java @@ -111,4 +111,20 @@ public final class MainToolbar extends Toolbar implements OnMenuItemClickListene public boolean isSlideUp() { return isSlideUp; } + + public String getQuery() { + return searchBar.getQuery(); + } + + public void transferQueryFromDialpad(String query) { + searchBar.setQueryWithoutUpdate(query); + } + + public void hideKeyboard() { + searchBar.hideKeyboard(); + } + + public void showKeyboard() { + searchBar.showKeyboard(); + } } |