summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Caitlin Shkuratov <caitlinshk@google.com> 2023-01-13 20:07:31 +0000
committer Caitlin Shkuratov <caitlinshk@google.com> 2023-01-18 16:40:47 +0000
commit5a7e9e634979a50ec38cf6994c9ae420ffdbb1ac (patch)
tree756f575d9d58cb7092d3ea3e06327c13f20914eb /opengl/java
parenta2d811ed1eac49377e70829b81e8b8d5316718f3 (diff)
[Media TTT] Use a listener pattern to notify about view removals.
In order to handle the swipe-to-dismiss gesture correctly, we need to notify MediaTttSenderCoordinator about both a view timing out, and a view being removed due to swipe. So, having the `onViewTimeout` Runnable will no longer work. This CL instead uses a listener interface to notify `MediaTttSenderCoordinator` whenever the view has timed out / been removed. A future CL will add the swipe-to-dismiss gesture. That gesture will also trigger this new listener method, so that MediaTttSenderCoordinator always stays up-to-date. Bug: 262584940 Test: manual: verify media ttt chipbars with different IDs still works (id1=triggered, then id2=almostClose. When id2 times out, id1 is redisplayed, then also times out) Test: atest MediaTttSenderCoordinatorTest TemporaryViewDisplayControllerTest Change-Id: I73c6235718f3b660ea416ca459ae777d8624a7be
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions