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

Commit 2ad09b0f authored by mattsziklay's avatar mattsziklay
Browse files

Fix for crash in CaptionWindowDecoration.

Bug: 320870713
Test: Manual
Change-Id: I82412f66eb9a7774df132acb8438d72c02a4e8a3
parent 97d24320
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ public class CaptionWindowDecoration extends WindowDecoration<WindowDecorLinearL

        // On a smaller screen, don't require as much empty space on screen, as offscreen
        // drags will be restricted too much.
        final int requiredEmptySpaceId = mDisplayController.getDisplayContext(mTaskInfo.taskId)
        final int requiredEmptySpaceId = mDisplayController.getDisplayContext(mTaskInfo.displayId)
                .getResources().getConfiguration().smallestScreenWidthDp >= 600
                ? R.dimen.freeform_required_visible_empty_space_in_header :
                R.dimen.small_screen_required_visible_empty_space_in_header;