Hide voice search in drawer qsb on invalid intent
This commit fixes an issue where the mic icon shows up when the search bar text has been changed, even with an invalid intent.
This commit is contained in:
1 parent
7ac7392080
commit
c3efe1a530
1 file changed
+1
-1
@@ -128,7 +128,7 @@ class AllAppsSearchInput(context: Context, attrs: AttributeSet?) :
|
||||
}
|
||||
addTextChangedListener {
|
||||
actionButton.isVisible = !it.isNullOrEmpty()
|
||||
micIcon.isVisible = shouldShowIcons && it.isNullOrEmpty()
|
||||
micIcon.isVisible = shouldShowIcons && voiceIntent != null && it.isNullOrEmpty()
|
||||
lensIcon.isVisible = shouldShowIcons && supportsLens && lensIntent != null && it.isNullOrEmpty()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user