containsUndismissedPanel

Returns whether the stack contains any Panel of type P that has not been dismissed yet.

This can be used to adjust the system UI's layout upon the start of a panel's dismissal, without having to wait for them to have been transitioned away completely.

Note: This returns a LiveData transformation, which does not have an up-to-date value unless observed.