Skip to content

Commit

Permalink
Restyled by google-java-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and joonhaengHeo committed Sep 12, 2024
1 parent f0d4ef2 commit 1cc1cdb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public void run() {

@Override
public void onServiceFound(NsdServiceInfo service) {
if (discoveredServiceInfo == null && targetServiceInfo.getServiceName().equals(service.getServiceName())) {
if (discoveredServiceInfo == null
&& targetServiceInfo.getServiceName().equals(service.getServiceName())) {
Log.d(TAG, "onServiceFound: found target service " + service);

if (stopDiscoveryRunnable.cancel(false)) {
Expand Down Expand Up @@ -206,7 +207,9 @@ public void onServiceLost(NsdServiceInfo service) {

@Override
public void onDiscoveryStopped(String serviceType) {
Log.i(TAG, "Discovery stopped: " + serviceType + ", discoveredServiceInfo: " + discoveredServiceInfo);
Log.i(
TAG,
"Discovery stopped: " + serviceType + ", discoveredServiceInfo: " + discoveredServiceInfo);
if (discoveredServiceInfo != null) {
resolveService(discoveredServiceInfo, callbackHandle, contextHandle, chipMdnsCallback);
discoveredServiceInfo = null;
Expand Down

0 comments on commit 1cc1cdb

Please sign in to comment.