For #11182: Set click listener also to icon button.
parent
e535ac753c
commit
a910698007
|
@ -90,6 +90,7 @@ class CollectionCreationBottomBarView(
|
||||||
setImageDrawable(drawable)
|
setImageDrawable(drawable)
|
||||||
contentDescription = null
|
contentDescription = null
|
||||||
importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO
|
importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO
|
||||||
|
setOnClickListener { interactor.addNewCollection() }
|
||||||
}
|
}
|
||||||
layout.setOnClickListener { interactor.addNewCollection() }
|
layout.setOnClickListener { interactor.addNewCollection() }
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,6 +74,9 @@ class CollectionCreationBottomBarViewTest {
|
||||||
|
|
||||||
layout.performClick()
|
layout.performClick()
|
||||||
verify { interactor.addNewCollection() }
|
verify { interactor.addNewCollection() }
|
||||||
|
|
||||||
|
iconButton.performClick()
|
||||||
|
verify { interactor.addNewCollection() }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue