09
This commit is contained in:
parent
aacc9448cf
commit
ba15e797a7
@ -70,6 +70,10 @@ public class Responder implements RequestListener {
|
|||||||
|
|
||||||
private void openMidi(String url) {
|
private void openMidi(String url) {
|
||||||
try {
|
try {
|
||||||
|
// Óáčđŕĺě file://
|
||||||
|
if(url.toLowerCase().startsWith("file://")) {
|
||||||
|
url = url.substring(7);
|
||||||
|
}
|
||||||
Main.midlet.compositionForm = new CompositionForm(Main.midlet, url);
|
Main.midlet.compositionForm = new CompositionForm(Main.midlet, url);
|
||||||
Main.dsp.setCurrent(Main.midlet.compositionForm);
|
Main.dsp.setCurrent(Main.midlet.compositionForm);
|
||||||
new Thread(Main.midlet.compositionForm).start();
|
new Thread(Main.midlet.compositionForm).start();
|
||||||
|
@ -153,7 +153,7 @@ public class CompositionForm extends Form implements CommandListener, Runnable {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (Exception ex) {
|
} 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);
|
a.setTimeout(Alert.FOREVER);
|
||||||
waitCanvas.cancel();
|
waitCanvas.cancel();
|
||||||
control.setCurrentlistMenu(a);
|
control.setCurrentlistMenu(a);
|
||||||
|
Loading…
Reference in New Issue
Block a user