Delete PCs by UUID instead of name

This commit is contained in:
Cameron Gutman
2019-07-16 20:35:18 -07:00
parent dc97adc7a1
commit 1d76536e31
3 changed files with 10 additions and 22 deletions

View File

@@ -585,7 +585,6 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
Toast.makeText(PcView.this, getResources().getString(R.string.error_manager_not_running), Toast.LENGTH_LONG).show();
return;
}
managerBinder.removeComputer(computer.details.name);
removeComputer(computer.details);
}
}, null);
@@ -630,6 +629,8 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
}
private void removeComputer(ComputerDetails details) {
managerBinder.removeComputer(details);
for (int i = 0; i < pcGridAdapter.getCount(); i++) {
ComputerObject computer = (ComputerObject) pcGridAdapter.getItem(i);