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:
Brian Isganitis
2025-03-19 14:04:23 -04:00
parent ddc72547d4
commit e8b7cd7b2e
4 changed files with 34 additions and 18 deletions

View File

@@ -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)