floating
floating copied to clipboard
Error on call floating.enable on AppLifecycleState.hidden
Hi. When I try to call floating.enable() on lifecycleState == AppLifecycleState.hidden, it throws an exception "Activity must be resumed to enter picture-in-picture". It works almost well on AppLifecycleState.incative, but the issue is triggering floating.enable() even if Quick Settings panel is shown. Any ideas how to use it exactly on hidden?