Loading
Fix staring window being hide after AR#commitVisibility
For legacy app transition, a visible activity could commit visibility after transition start, so it won't clear the policy visibility flag on starting window immediately. But for shell transition, there will call commit visibility immediately after setVisibility, which let the starting window be hidden with policy visibility flag. To make the condition more generic, also check firstWindowDrawn or allDrawn before clear the flag. Bug: 199363064 Test: No change when using app transition. Test: Enable shell transition, check the starting window is really visible on SF layer when launch app. Change-Id: I93a9f23c8d686c7bd176ae2806c28675562efc53