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

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2024-12-10 23:02:27 +00:00
commit cedfde549e
1 file changed
+3 -1
@@ -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();