AwesomeBarUIView: Rename variable to prevent name shadowing

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
nightly-build-test
Harsh Shandilya 5 years ago committed by Emily Kager
parent 0e3ffc863b
commit e20fa5dc32

@ -127,8 +127,8 @@ class AwesomeBarUIView(
)
if (Settings.getInstance(container.context).showSearchSuggestions()) {
val draw = getDrawable(R.drawable.ic_search)
draw?.setColorFilter(
val searchDrawable = getDrawable(R.drawable.ic_search)
searchDrawable?.setColorFilter(
ContextCompat.getColor(
this,
DefaultThemeManager.resolveAttribute(R.attr.primaryText, this)
@ -143,7 +143,7 @@ class AwesomeBarUIView(
fetchClient = components.core.client,
mode = SearchSuggestionProvider.Mode.MULTIPLE_SUGGESTIONS,
limit = 3,
icon = draw?.toBitmap()
icon = searchDrawable?.toBitmap()
)
}

Loading…
Cancel
Save