diff options
| author | 2024-01-23 17:57:22 -0800 | |
|---|---|---|
| committer | 2024-01-23 18:43:29 -0800 | |
| commit | 2ad09b0fdcd1baf86606e1781970705c617a184b (patch) | |
| tree | c3790e7c5b66c0d1ca11afc1ba84d5aca347597c | |
| parent | 97d24320c1a1e701da531f90773e69e062c12e5e (diff) | |
Fix for crash in CaptionWindowDecoration.
Bug: 320870713
Test: Manual
Change-Id: I82412f66eb9a7774df132acb8438d72c02a4e8a3
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/CaptionWindowDecoration.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/CaptionWindowDecoration.java b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/CaptionWindowDecoration.java index 5a74255df49a..e6faa6391cca 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/CaptionWindowDecoration.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/CaptionWindowDecoration.java @@ -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; |