commit | 634560a33b8cee2a40e8517164814dc940528eda | [log] [tgz] |
---|---|---|
author | Charles Chen <charlesccchen@google.com> | Tue Jun 18 18:11:13 2024 +0800 |
committer | Charles Chen <charlesccchen@google.com> | Wed Jun 19 14:22:21 2024 +0800 |
tree | 797ec4461302936d4238260dfaad1f7cf82fad55 | |
parent | bcc59ec188f4bdb8a027dbe378c98272cecfaa71 [diff] |
Try to fix Exception in windowLayoutInfo The issue is because app uses context without display association, but somehow passes the UI Context check. Then it throws exception when trying to call #getDisplay. This CL provides compatibility by calling #getDisplayId instead. Bug: 347862394 Test: atest WindowLayoutComponentImplTest Flag: EXEMPT bugfix Change-Id: Ic416f198a1c12b36471ba10bd4cb996e7c5894ec