Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
konifar committed May 13, 2019
1 parent ef1647d commit cf1fa52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ class SearchFragment : DaggerFragment() {

// Change icon color
val closeIcon =
searchView.findViewById<ImageView>(androidx.appcompat.R.id.search_close_btn);
searchView.findViewById<ImageView>(androidx.appcompat.R.id.search_close_btn)
changeMenuIconColor(closeIcon)
val searchIcon =
searchView.findViewById<ImageView>(androidx.appcompat.R.id.search_button);
searchView.findViewById<ImageView>(androidx.appcompat.R.id.search_button)
changeMenuIconColor(searchIcon)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ class StaffSearchFragment : DaggerFragment() {

// Change icon color
val closeIcon =
searchView?.findViewById<ImageView>(androidx.appcompat.R.id.search_close_btn);
searchView?.findViewById<ImageView>(androidx.appcompat.R.id.search_close_btn)
changeMenuIconColor(closeIcon)
val searchIcon =
searchView?.findViewById<ImageView>(androidx.appcompat.R.id.search_button);
searchView?.findViewById<ImageView>(androidx.appcompat.R.id.search_button)
changeMenuIconColor(searchIcon)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ class MainActivity : DaggerAppCompatActivity() {
}
val toolbarContentsColor = ContextCompat.getColor(
this,
if (config.isBrandTheme) R.color.colorOnBrandBackground else R.color.colorOnBackground
if (config.isBrandTheme) {
R.color.colorOnBrandBackground
} else {
R.color.colorOnBackground
}
)
binding.toolbar.navigationIcon?.setColorFilter(
toolbarContentsColor,
Expand Down

0 comments on commit cf1fa52

Please sign in to comment.