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

Skip to content
Commit 228bc14e authored by Eric Lin's avatar Eric Lin
Browse files

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
parent 229d51bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment