Loading
Check parent frame instead of window bounds
In Task#calculateTopActivityMainWindowFrameForTaskInfo, we previously regard an activity as a match-parent activity by comparing the window frame to window bounds. It could be wrong if the window frame excludes the inset. This CL changes to compare with parent frame, which use the same logic to exclude the insets area. Test: none Bug: 356277166 Flag: com.android.window.flags.better_support_non_match_parent_activity Change-Id: I42c371783f421e1603b18fed283ccc231a03ad0d