From 37deb21bd42260a9384797cd2294ac69fb178d61 Mon Sep 17 00:00:00 2001 From: Schneider Victor-Tulias Date: Tue, 10 Dec 2024 13:50:40 -0500 Subject: [PATCH] Update QuickstepTestInformationHandler.getWindowInsets to support recents window Flag: com.android.launcher3.enable_fallback_overview_in_window Fixes: 382252723 Fixes: 378158368 Test: TaplDragTest Change-Id: I272a9e50f2209d3b7959bb9abc834546c9b845e8 --- .../android/quickstep/QuickstepTestInformationHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java b/quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java index 2828a84f5e..a5d2f3e3a2 100644 --- a/quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java +++ b/quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java @@ -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();