|
|
@ -49,7 +49,8 @@ interface ToolbarInteractor {
|
|
|
|
class ToolbarView(
|
|
|
|
class ToolbarView(
|
|
|
|
private val container: ViewGroup,
|
|
|
|
private val container: ViewGroup,
|
|
|
|
private val interactor: ToolbarInteractor,
|
|
|
|
private val interactor: ToolbarInteractor,
|
|
|
|
private val historyStorage: HistoryStorage?
|
|
|
|
private val historyStorage: HistoryStorage?,
|
|
|
|
|
|
|
|
private val isPrivate: Boolean
|
|
|
|
) : LayoutContainer {
|
|
|
|
) : LayoutContainer {
|
|
|
|
|
|
|
|
|
|
|
|
override val containerView: View?
|
|
|
|
override val containerView: View?
|
|
|
@ -87,6 +88,8 @@ class ToolbarView(
|
|
|
|
R.color.suggestion_highlight_color
|
|
|
|
R.color.suggestion_highlight_color
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private = isPrivate
|
|
|
|
|
|
|
|
|
|
|
|
setOnEditListener(object : mozilla.components.concept.toolbar.Toolbar.OnEditListener {
|
|
|
|
setOnEditListener(object : mozilla.components.concept.toolbar.Toolbar.OnEditListener {
|
|
|
|
override fun onCancelEditing(): Boolean {
|
|
|
|
override fun onCancelEditing(): Boolean {
|
|
|
|
interactor.onEditingCanceled()
|
|
|
|
interactor.onEditingCanceled()
|
|
|
|