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
Loading
Please register or sign in to comment