Merge "Update QuickstepTestInformationHandler.getWindowInsets to support recents window" into main

This commit is contained in:
Treehugger Robot
2024-12-10 23:02:27 +00:00
committed by Android (Google) Code Review
@@ -208,8 +208,10 @@ public class QuickstepTestInformationHandler extends TestInformationHandler {
OverviewComponentObserver observer = new OverviewComponentObserver(mContext, rads);
try {
RecentsViewContainer container = observer.getContainerInterface().getCreatedContainer();
WindowInsets insets = container == null
? null : container.getRootView().getRootWindowInsets();
return container == null ? null : container.getRootView().getRootWindowInsets();
return insets == null ? super.getWindowInsets() : insets;
} finally {
observer.onDestroy();
rads.destroy();