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

Commit d778698b authored by Jack Yu's avatar Jack Yu Committed by Android (Google) Code Review
Browse files

Merge "Add flag for onWlcStateChanged" into main

parents 1967deb6 0d07338b
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);
            }