Merge "Update QuickstepTestInformationHandler.getWindowInsets to support recents window" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
cedfde549e
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user