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

Commit 5b7b782a authored by Chalard Jean's avatar Chalard Jean Committed by Gerrit Code Review
Browse files

Merge "Replace withCleanCallingIdentity with [clear|restore]CallingIdentity"

parents 761614c8 a668a2d5
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -2905,10 +2905,14 @@ public class ConnectivityManager {
        ResultReceiver wrappedListener = new ResultReceiver(null) {
            @Override
            protected void onReceiveResult(int resultCode, Bundle resultData) {
                Binder.withCleanCallingIdentity(() ->
                final long token = Binder.clearCallingIdentity();
                try {
                    executor.execute(() -> {
                        listener.onTetheringEntitlementResult(resultCode);
                            }));
                    });
                } finally {
                    Binder.restoreCallingIdentity(token);
                }
            }
        };