1
0
Fork 0

Refactor new param to startInEditMode

master
Emily Kager 2019-05-29 11:29:00 -07:00 committed by Jeff Boek
parent d6c1f65d72
commit f142be8c92
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ class ToolbarComponent(
bus: ActionBusFactory,
private val sessionId: String?,
private val isPrivate: Boolean,
private val inSearchFragment: Boolean,
private val startInEditMode: Boolean,
private val engineIconView: ImageView? = null,
viewModelProvider: UIComponentViewModelProvider<SearchState, SearchChange>
) :
@ -41,7 +41,7 @@ class ToolbarComponent(
override fun initView() = ToolbarUIView(
sessionId,
isPrivate,
inSearchFragment,
startInEditMode,
container,
actionEmitter,
changesObservable,

View File

@ -24,7 +24,7 @@ import org.mozilla.fenix.mvi.UIView
class ToolbarUIView(
sessionId: String?,
isPrivate: Boolean,
inSearchFragment: Boolean,
startInEditMode: Boolean,
container: ViewGroup,
actionEmitter: Observer<SearchAction>,
changesObservable: Observable<SearchChange>,
@ -49,7 +49,7 @@ class ToolbarUIView(
?: sessionManager.selectedSession
view.apply {
if (inSearchFragment) {
if (startInEditMode) {
editMode()
}