Fix glanceable hub touch handler processing touches when closing shade on dream

The glanceable hub currently only refrains from processing touches when
the shade is fully open. When closing the shade on the dream, touches
after the shade is partially closed will be processed as the shade is
no longer fully expanded. This leads to the communal container
receiving partial gestures, such as move events without down events.

This fixes an issue where slowly closing the shade over the hub on
dream, ie. with a drag not a fling, causes the shade to be stuck open
and keep stealing touches.

Bug: 361091641
Test: atest GlanceableHubContainerControllerTest
Flag: com.android.systemui.communal_hub
Change-Id: Ic254e551e396f10b9451ba927a9b93fa7e848237
2 files changed