You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a SearchView used in the app. Either run via a mirrored way (using ScrCpy or the IDE), or run on emulator
Try to type using the PC's keyboard right on beginning. Nothing occurs, as it should
Open the SearchView, and then type. The soft keyboard appears as soon as you open the SearchView (as it should). You might see other issues such as the keyboard going away for some reason (bug!).
Now close the SearchView, notice the soft-keyboard also goes away.
Again type.
The bug is that the soft-keyboard appears again, as if you can type...
Expected behavior: Screenshots and/or description of expected behavior
The keyboard should stay when I can type to something (and shouldn't close by itself), and it shouldn't appear when I start typing into nothing.
Source code: The code snippet which is causing this issue
override fun onCreateOptionsMenu(menu: Menu): Boolean {
// Inflate the menu; this adds items to the action bar if it is present.
menuInflater.inflate(R.menu.menu_main, menu)
menu.findItem(R.id.menuItem_search)
.setOnActionExpandListener(object : OnActionExpandListener {
override fun onMenuItemActionExpand(item: MenuItem): Boolean {
Log.d("AppLog", "onMenuItemActionExpand")
return true
}
override fun onMenuItemActionCollapse(item: MenuItem): Boolean {
Log.d("AppLog", "onMenuItemActionCollapse")
return true
}
})
return true
}
Minimal sample app repro: Please consider attaching a minimal sample app that reproduces the issue. This will help narrow down the conditions required for reproducing the issue, and it will speed up the bug fix process. You may attach a zip file of the sample app or link to a GitHub repo that contains the sample app.
Description: Full description of issue here
The bug is that the soft-keyboard appears again, as if you can type...
Expected behavior: Screenshots and/or description of expected behavior
The keyboard should stay when I can type to something (and shouldn't close by itself), and it shouldn't appear when I start typing into nothing.
Source code: The code snippet which is causing this issue
res/menu/menu_main.xml
Minimal sample app repro: Please consider attaching a minimal sample app that reproduces the issue. This will help narrow down the conditions required for reproducing the issue, and it will speed up the bug fix process. You may attach a zip file of the sample app or link to a GitHub repo that contains the sample app.
Attached, together with a video:
MyApplication.zip
Android API version: Android API version here
35 (Android 15)
Material Library version: Material Android Library version you are using here (e.g., 1.1.0-alpha07)
Device: Device on which the bug was encountered here
Pixel 6 and emulator.
The text was updated successfully, but these errors were encountered: