mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Use up-to-date hover tooltip text for recents.
Flag: EXEMPT bugfix Fix: 402776493 Test: go/testedequals Change-Id: I6f438ce8b3cd51beaece0cf6734876f21719bf3d
This commit is contained in:
@@ -147,6 +147,15 @@ class TaskbarHoverToolTipControllerTest {
|
||||
assertThat(isHoverToolTipOpen).isFalse()
|
||||
}
|
||||
|
||||
@Test
|
||||
fun onHover_emptyTitle_noTooltip() {
|
||||
runOnMainSync {
|
||||
iconView.text = ""
|
||||
iconView.dispatchGenericMotionEvent(HOVER_ENTER)
|
||||
}
|
||||
assertThat(isHoverToolTipOpen).isFalse()
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val HOVER_EXIT = MotionEvent.obtain(0, 0, ACTION_HOVER_EXIT, 0f, 0f, 0)
|
||||
private val HOVER_ENTER = MotionEvent.obtain(0, 0, ACTION_HOVER_ENTER, 0f, 0f, 0)
|
||||
|
||||
Reference in New Issue
Block a user