Skip applying legacy insets for app bubbles behind flags.
For apps targeting SDK earlier than 35, legacy insets would be added if they are bubble'd. This triggers a bug with size compat mode where the restart button won't be able to correctly scale least one side of the activity to its parent.
Fix: 384610304
Before: screenshot/C8xTxrSoWsdhTUk
After: screenshot/8LqLJnaQKuDV6UC
Test: wm presubmit
Flag: com.android.wm.shell.enable_create_any_bubble
Flag: com.android.wm.shell.enable_bubble_app_compat_fixes
Change-Id: I2e66a101d3e60bfaaea52d79f9b955534811dd0d
3 files changed