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

Commit e485941c authored by Alex Chau's avatar Alex Chau
Browse files

Check null for actinosView in resetPaddingFromTaskSize

Bug: 185805100
Fixes: 185805100
Test: manual
Change-Id: I03cc5820d77c16873acf3d9600c544d90b515a29
parent bfd56a6d
Loading
Loading
Loading
Loading
+19 −17
Original line number Diff line number Diff line
@@ -1165,6 +1165,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
        updateTaskSize();

        // Update ActionsView position
        if (mActionsView != null) {
            FrameLayout.LayoutParams layoutParams =
                    (FrameLayout.LayoutParams) mActionsView.getLayoutParams();
            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);
        }
    }

    /**
     * Updates TaskView scaling and translation required to support variable width.