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 cliffamzn committed Mar 8, 2023
1 parent fe9278f commit f83e33c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,17 @@ public void handle(DiscoveredNodeData discoveredNodeData) {
new Handler(Looper.getMainLooper())
.post(
() -> {
final Optional<DiscoveredNodeData> discoveredNodeInList = commissionerVideoPlayerList.stream().filter(
node -> discoveredNodeData.discoveredNodeHasSameSource(node)).findFirst();
final Optional<DiscoveredNodeData> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit f83e33c

Please sign in to comment.