Only add PCs to the computer list when they have been polled once to get a UUID for equality comparison. Fix equality comparison in PcView to avoid duplicate PCs enumerated over mDNS.

This commit is contained in:
Cameron Gutman
2015-02-07 11:44:56 -05:00
parent 55c800c2a5
commit 10204afdb4
2 changed files with 9 additions and 31 deletions
+1 -1
View File
@@ -530,7 +530,7 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
ComputerObject computer = (ComputerObject) pcGridAdapter.getItem(i);
// Check if this is the same computer
if (details.equals(computer.details)) {
if (details.uuid.equals(computer.details.uuid)) {
existingEntry = computer;
break;
}