return true;
}
protected void deviceSelected(final ISelectedContent[] contents,
final boolean allow_retry) {
TranscodeChooser deviceChooser = new TranscodeChooser() {
public void closed() {
DeviceManager deviceManager = DeviceManagerFactory.getSingleton();
if (selectedTranscodeTarget != null && selectedProfile != null) {
for (int i = 0; i < contents.length; i++) {
ISelectedContent selectedContent = contents[i];
DownloadManager dm = selectedContent.getDownloadManager();
if (dm == null) {
continue;
}
DiskManagerFileInfo[] files = dm.getDiskManagerFileInfo();
for (DiskManagerFileInfo file : files) {
try {
deviceManager.getTranscodeManager().getQueue().add(
selectedTranscodeTarget,
selectedProfile,
(org.gudy.azureus2.plugins.disk.DiskManagerFileInfo) PluginCoreUtils.convert(
file, false), false);
} catch (TranscodeException e) {
Debug.out(e);
}
}
}
}
}
};
deviceChooser.show(new Runnable() {
public void run() {
if (allow_retry) {
deviceSelected(contents, false);
}