Merge "Check null for actinosView in resetPaddingFromTaskSize" into sc-dev

This commit is contained in:
Alex Chau
2021-04-20 17:50:38 +00:00
committed by Android (Google) Code Review
@@ -1165,6 +1165,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
updateTaskSize(); updateTaskSize();
// Update ActionsView position // Update ActionsView position
if (mActionsView != null) {
FrameLayout.LayoutParams layoutParams = FrameLayout.LayoutParams layoutParams =
(FrameLayout.LayoutParams) mActionsView.getLayoutParams(); (FrameLayout.LayoutParams) mActionsView.getLayoutParams();
if (dp.isTablet && FeatureFlags.ENABLE_OVERVIEW_GRID.get()) { if (dp.isTablet && FeatureFlags.ENABLE_OVERVIEW_GRID.get()) {
@@ -1184,6 +1185,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
} }
mActionsView.setLayoutParams(layoutParams); mActionsView.setLayoutParams(layoutParams);
} }
}
/** /**
* Updates TaskView scaling and translation required to support variable width. * Updates TaskView scaling and translation required to support variable width.