From caae5e0bfb1c779b58085d4a6527c6bf3dc524d4 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 23 Apr 2019 20:49:06 +0530 Subject: [PATCH] [fenix] AwesomeBarUIView: Rename variable to prevent name shadowing Signed-off-by: Harsh Shandilya --- .../org/mozilla/fenix/search/awesomebar/AwesomeBarUIView.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarUIView.kt b/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarUIView.kt index 080c490832..9ccc716b2b 100644 --- a/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarUIView.kt +++ b/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarUIView.kt @@ -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() ) }