Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37deb21b authored by Schneider Victor-Tulias's avatar Schneider Victor-Tulias
Browse files

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
parent 98992830
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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();