Skip to content

Commit 39e02b2

Browse files
1951FDGhannesa2
authored andcommitted
UI: Use full width of actionbar for expanded searchview (also fixes landscape orientation bug)
1 parent 519e02a commit 39e02b2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

LogcatCoreLib/src/main/java/info/hannes/logcat/base/LogBaseFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ abstract class LogBaseFragment : Fragment() {
136136
searchView?.let {
137137
it.setSearchableInfo(searchManager.getSearchableInfo(activity!!.componentName))
138138
it.setIconifiedByDefault(true)
139+
it.setMaxWidth(Int.MAX_VALUE)
139140
it.setOnQueryTextListener(queryTextListener)
140141
if (currentFilter != "") {
141142
if (searchAutoComplete != null && searchItem != null) {

0 commit comments

Comments
 (0)