Update the deprecated BitmapDrawable constructor (#2308)
This commit is contained in:
parent
7d577e5953
commit
62ae2bca11
|
@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- #975 - Added telemetry for preference switches
|
||||
- #1955 - Added a confirmation dialog for QR code and barcode searches
|
||||
- #1874 - Added a "Turn on Sync" fragment for Firefox Accounts login and sign up
|
||||
- #2308 - Update the deprecated BitmapDrawable constructor
|
||||
|
||||
### Changed
|
||||
- #1429 - Updated site permissions ui for MVP
|
||||
|
|
|
@ -153,7 +153,7 @@ class ToolbarUIView(
|
|||
with(view.context) {
|
||||
val defaultEngineIcon = components.search.searchEngineManager.defaultSearchEngine?.icon
|
||||
val searchIcon = newState.engine?.icon ?: defaultEngineIcon
|
||||
val draw = BitmapDrawable(searchIcon)
|
||||
val draw = BitmapDrawable(resources, searchIcon)
|
||||
val iconSize =
|
||||
containerView?.context!!.resources.getDimension(R.dimen.preference_icon_drawable_size).toInt()
|
||||
draw.setBounds(0, 0, iconSize, iconSize)
|
||||
|
|
Loading…
Reference in New Issue
Block a user