CategoryManager.addCategoryManagerListener(MyTorrentsView.this);
globalManager.addListener(MyTorrentsView.this, false);
DownloadManager[] dms = (DownloadManager[]) globalManager.getDownloadManagers().toArray(new DownloadManager[0]);
for (int i = 0; i < dms.length; i++) {
DownloadManager dm = dms[i];
dm.addListener(MyTorrentsView.this);
if (!isOurDownloadManager(dm)) {
dms[i] = null;
}
}
tv.addDataSources(dms);