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

Commit 0d07338b authored by Jack Yu's avatar Jack Yu
Browse files

Add flag for onWlcStateChanged

Fix the warnging in ag/25090760

Bug: 292143899
Test: compiles
Change-Id: I6a712a0bdcd37815f0adaaa5bd3f6fd28962788b
parent 23068406
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -98,8 +98,10 @@ public class NfcWlcStateListener extends INfcWlcStateListener.Stub {
            Executor executor = mListenerMap.get(listener);
            final long identity = Binder.clearCallingIdentity();
            try {
                if (Flags.enableNfcCharging()) {
                    executor.execute(() -> listener.onWlcStateChanged(
                            mCurrentState));
                }
            } finally {
                Binder.restoreCallingIdentity(identity);
            }