diff --git a/examples/tv-casting-app/android/App/app/src/main/java/com/chip/casting/app/CommissionerDiscoveryFragment.java b/examples/tv-casting-app/android/App/app/src/main/java/com/chip/casting/app/CommissionerDiscoveryFragment.java index a0345222f54342..0f0529a6c70cfa 100644 --- a/examples/tv-casting-app/android/App/app/src/main/java/com/chip/casting/app/CommissionerDiscoveryFragment.java +++ b/examples/tv-casting-app/android/App/app/src/main/java/com/chip/casting/app/CommissionerDiscoveryFragment.java @@ -90,10 +90,17 @@ public void handle(DiscoveredNodeData discoveredNodeData) { new Handler(Looper.getMainLooper()) .post( () -> { - final Optional discoveredNodeInList = commissionerVideoPlayerList.stream().filter( - node -> discoveredNodeData.discoveredNodeHasSameSource(node)).findFirst(); + final Optional discoveredNodeInList = + commissionerVideoPlayerList + .stream() + .filter(node -> discoveredNodeData.discoveredNodeHasSameSource(node)) + .findFirst(); if (discoveredNodeInList.isPresent()) { - Log.d(TAG, "Replacing existing entry " + discoveredNodeInList.get().getDeviceName() + " in players list"); + Log.d( + TAG, + "Replacing existing entry " + + discoveredNodeInList.get().getDeviceName() + + " in players list"); arrayAdapter.remove(discoveredNodeInList.get()); } arrayAdapter.add(discoveredNodeData); diff --git a/examples/tv-casting-app/android/App/app/src/main/jni/com/chip/casting/DiscoveredNodeData.java b/examples/tv-casting-app/android/App/app/src/main/jni/com/chip/casting/DiscoveredNodeData.java index 6c9002e149f660..2590f82dc2bf92 100644 --- a/examples/tv-casting-app/android/App/app/src/main/jni/com/chip/casting/DiscoveredNodeData.java +++ b/examples/tv-casting-app/android/App/app/src/main/jni/com/chip/casting/DiscoveredNodeData.java @@ -221,6 +221,7 @@ public String toString() { /** * Checks to see if a discovered node is "effectively equal" to another by comparing the * parameters that should not change. + * * @param o the object to compare to. * @return true if the objects are from the same source, false otherwise. */