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

Commit 54844b4c authored by Winson Chung's avatar Winson Chung
Browse files

Add null check before setting min size

Bug: 126272951
Test: Not reproducible
Change-Id: Iaad5b04df48ddf865101ba96bc560c0028f5f3d1
parent 0b03b6c8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -795,7 +795,10 @@ public class PipTouchHandler {
                ? mExpandedMovementBounds
                : mNormalMovementBounds;
        try {
            mPinnedStackController.setMinEdgeSize(isMenuExpanded ? mExpandedShortestEdgeSize : 0);
            if (mPinnedStackController != null) {
                mPinnedStackController.setMinEdgeSize(
                        isMenuExpanded ? mExpandedShortestEdgeSize : 0);
            }
        } catch (RemoteException e) {
            Log.e(TAG, "Could not set minimized state", e);
        }