material-components / material-components/material-components-android

onQueryTextChange calls only once if I call mViewPager.setAdapter(mViewPagerAdapter) inside

Open
#5,005 4 comments 0 reactions 1 assignee View on GitHub

@hunterstich is already working on this.

Since Feb 19, 2026.

bug Need more info Widget: Search
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:**
When I use com.google.android.material version 1.13.0
onQueryTextChange calls only once if I call mViewPager.setAdapter(mViewPagerAdapter) inside
And there is no onscreen keyboard appears.
It doens't happen with version 1.12.0

**Expected behavior:**
Here is the link to the video of this issue:
https://drive.google.com/file/d/1OFAXM6YWB1nl4SKUjS4U_IYrYwgQ_mfA/view?usp=sharing

**Minimal sample app repro:**
Here is the link to the project that shows this issue:
https://drive.google.com/file/d/1ie_nqlLGQMudliBm4CH8217SnTwCrcQi/view?usp=sharing

To reproduce this issue just change
material = "1.12.0" to
material = "1.13.0" in
libs.versions.toml file.

**Android API version:** 16

**Material Library version:** com.google.android.material 1.13.0

**Device:** Pixel 9 Pro XL

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.