commit | 788a801020f57a6ddd71fa42197aee9b1d83f2f0 | [log] [tgz] |
---|---|---|
author | Yi Jiang <eejiang@google.com> | Wed Dec 29 23:59:33 2021 +0000 |
committer | Yi Jiang <eejiang@google.com> | Wed Feb 23 06:55:23 2022 +0000 |
tree | 9629fbf33f04e3abc2b262aa899e632517a61eae | |
parent | 8d50e04afcfceb20c4ae54667130a45a0ade0c6b [diff] |
Fixes NPE from resolveRotation() RotatatinResolverInternal can be null when the service is not ready. This change adds a null check to avoid NPE. Test: atest WindowOrientatinListenerTest Bug: 199375757 Bug: 199381926 Change-Id: I1b6f3aee3eddf8f565f7ca21b1879f40c36f4e5c (cherry picked from commit 835f63f972aa96945f518d139456cf794d041ca0)