@ -14,13 +14,18 @@ class SearchView(context: Context, attrs: AttributeSet) : FrameLayout(context, a
var isPrivateModeEnabled = false
private val lightDrawable = resources . getDrawable ( R . drawable . home _search _background _light )
private val privateLightDrawable = resources . getDrawable ( R . drawable . home _search _background _private )
private val darkDrawable = resources . getDrawable ( R . drawable . home _search _background _dark )
private val privateDarkDrawable = resources . getDrawable ( R . drawable . home _search _background _private _dark )
private val darkNoBorderDrawable = resources . getDrawable ( R . drawable . home _search _background _dark _no _border )
private val lightDrawable =
resources . getDrawable ( R . drawable . home _search _background _light , context . theme )
private val privateLightDrawable =
resources . getDrawable ( R . drawable . home _search _background _private , context . theme )
private val darkDrawable =
resources . getDrawable ( R . drawable . home _search _background _dark , context . theme )
private val privateDarkDrawable =
resources . getDrawable ( R . drawable . home _search _background _private _dark , context . theme )
private val darkNoBorderDrawable =
resources . getDrawable ( R . drawable . home _search _background _dark _no _border , context . theme )
private val privateDarkNoBorderDrawable =
resources . getDrawable ( R . drawable . home _search _background _private _dark _no _border )
resources . getDrawable ( R . drawable . home _search _background _private _dark _no _border , context . theme )
private val lightToDark = TransitionDrawable ( arrayOf ( lightDrawable , darkDrawable ) )
private val darkToNoBorder = TransitionDrawable ( arrayOf ( darkDrawable , darkNoBorderDrawable ) )