Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6713edc5 authored by Massimo Carli's avatar Massimo Carli
Browse files

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
parent a2c91d2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment