We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 206928b commit 884a454Copy full SHA for 884a454
lib/java/com/google/android/material/search/SearchView.java
@@ -543,6 +543,15 @@ public void setupWithSearchBar(@Nullable SearchBar searchBar) {
543
searchViewAnimationHelper.setSearchBar(searchBar);
544
if (searchBar != null) {
545
searchBar.setOnClickListener(v -> show());
546
+ if (BuildCompat.isAtLeastU()) {
547
+ try {
548
+ searchBar.setHandwritingDelegatorCallback(this::show);
549
+ editText.setIsHandwritingDelegate(true);
550
+ } catch (LinkageError e) {
551
+ // Running on a device with an older build of Android U
552
+ // TODO(b/274154553): Remove try/catch block after Android U Beta 1 is released
553
+ }
554
555
}
556
updateNavigationIconIfNeeded();
557
setUpBackgroundViewElevationOverlay();
0 commit comments