This commit is contained in:
Victor 2018-11-14 19:47:36 +02:00
parent aacc9448cf
commit ba15e797a7
2 changed files with 5 additions and 1 deletions

View File

@ -70,6 +70,10 @@ public class Responder implements RequestListener {
private void openMidi(String url) {
try {
// Óáčđŕĺě file://
if(url.toLowerCase().startsWith("file://")) {
url = url.substring(7);
}
Main.midlet.compositionForm = new CompositionForm(Main.midlet, url);
Main.dsp.setCurrent(Main.midlet.compositionForm);
new Thread(Main.midlet.compositionForm).start();

View File

@ -153,7 +153,7 @@ public class CompositionForm extends Form implements CommandListener, Runnable {
}
});
} catch (Exception ex) {
Alert a = new Alert(L.str[L.error], L.str[L.openError] + "\n" + ex, null, null);//@@@
Alert a = new Alert(L.str[L.error], L.str[L.openError] + "\n" + ex.toString(), null, null);//@@@
a.setTimeout(Alert.FOREVER);
waitCanvas.cancel();
control.setCurrentlistMenu(a);