diff options
| author | 2024-07-13 11:56:31 +0000 | |
|---|---|---|
| committer | 2024-07-13 12:08:58 +0000 | |
| commit | 6713edc5109e428a1f4357e974eedd4cf777c522 (patch) | |
| tree | 0c31adfb9ce65e66e007df3fae227d73e936a371 /libs/androidfw/StringPool.cpp | |
| parent | a2c91d2f8574efdcb79e8e6d23fbab607404d0a9 (diff) | |
Fix possible NPE in TransparentPolicy
Even if the NPE would require TransparentPolicy#isRunning()
to be false which is not possible if also
`mTransparentPolicyState.mFirstOpaqueActivity` is null,
we use Optional.ofNullable() to prevent problems in case
the isRunning() method is mocked in tests.
Also remove unused methods.
Flag: EXEMPT small fix
Fix: 352868162
Test: atest WmTests:TransparentPolicyTest
Change-Id: Idbefec0e7290507f0b40347b2809d9dca40cf94b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions