Fix shade flicker when launching activity from glanceable hub

The shade collapse animation runs today even when the shade is already
collapsed, which causes it to open. This prevents the shade from trying
to collapse itself if the shade is closed on the lockscreen.

Fixes: 331591373
Test: atest SystemUITests:NotificationPanelViewControllerTest
Flag: ACONFIG com.android.systemui.shade_collapse_activity_launch_fix
DISABLED

Change-Id: I429c2a1d985b5e719321bbb0fbedb1332b2fd5f4
3 files changed