Open ljubarskij opened 1 year ago
Hi, thanks for the report. Can you provide more info? By "not working" do you mean it doesn't perform the search or?
Hi @drchen, sorry for confusion. When I call searchBar.setText("text")
I expect "text" to be populated into search bar. I understand that to perform a search, I need to implement it myself.
Description: I have copied your code from
SearchRecyclerDemoActivity
and while playing with search bar I have noticed that doingsearchBar.setText(...)
insidesubmitSearchQuery()
does nothing (no effect). Once I have configuredandroid:windowSoftInputMode="adjustNothing"
in my activity, it started working.Expected behavior:
searchBar.setText(...)
should work even without setting windowSoftInputMode. (IDK, I am new to android, but I guess it should not depend on windowSoftInputMode)Source code:
Android API version: 33
Material Library version: 1.9.0-rc01
Device: xiaomi mi note 10 lite (MIUI Global 12.5.6 Stable)