summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Eric Lin <ericth@google.com> 2024-10-29 15:45:51 +0800
committer Eric Lin <ericth@google.com> 2024-10-30 13:24:00 +0800
commit228bc14e82becaa6786ee543eb7d2675c9cf0590 (patch)
tree5bba847982668b5019451559a44646e1d74431e0 /api/api_test.go
parent229d51bbb4fe3eeedf56ecee51357531cf00f9cf (diff)
Align non-UI context behavior in getCurrentWindowLayoutInfo.
This commit aligns the behavior of `getCurrentWindowLayoutInfo` with `addWindowLayoutInfoListener` by throwing an `IllegalArgumentException` when the provided context is not a `UiContext`. This ensures that both methods have consistent behavior and provide clear error messages when used incorrectly. Bug: 337820752 Flag: com.android.window.flags.wlinfo_oncreate Test: atest CtsWindowManagerJetpackTestCases:ExtensionWindowLayoutComponentTest Test: atest WMJetpackUnitTests:WindowLayoutComponentImplTest Change-Id: I3cd579a96c2fda93c57dbf046f221950f5e11cd8
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions