commit | 6713edc5109e428a1f4357e974eedd4cf777c522 | [log] [tgz] |
---|---|---|
author | Massimo Carli <mcarli@google.com> | Sat Jul 13 11:56:31 2024 +0000 |
committer | Massimo Carli <mcarli@google.com> | Sat Jul 13 12:08:58 2024 +0000 |
tree | 0c31adfb9ce65e66e007df3fae227d73e936a371 | |
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