зеркало из https://github.com/mozilla/pluotsorbet.git
Remove fgMidletClass url parameter. Fixes #927.
This commit is contained in:
Родитель
eb0338c255
Коммит
65ff5be159
|
@ -22,7 +22,6 @@
|
|||
* network_mnc
|
||||
* platform
|
||||
* profile
|
||||
* fgMidletClass
|
||||
* autosize
|
||||
* fontSize
|
||||
*
|
||||
|
|
|
@ -3,22 +3,30 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
var fgMidletNumber;
|
||||
var fgMidletClass;
|
||||
|
||||
function backgroundCheck() {
|
||||
if (!MIDP.manifest["Nokia-MIDlet-bg-server"]) {
|
||||
var bgServer = MIDP.manifest["Nokia-MIDlet-bg-server"];
|
||||
if (!bgServer) {
|
||||
document.getElementById("splash-screen").style.display = "block";
|
||||
document.getElementById("background-screen").style.display = "none";
|
||||
return;
|
||||
}
|
||||
|
||||
// We're assuming there are only two midlets
|
||||
fgMidletNumber = (bgServer == 2) ? 1 : 2;
|
||||
fgMidletClass = MIDP.manifest["MIDlet-" + fgMidletNumber].split(",")[2];
|
||||
|
||||
DumbPipe.close(DumbPipe.open("backgroundCheck", {}));
|
||||
}
|
||||
|
||||
Native["com/nokia/mid/s40/bg/BGUtils.getFGMIDletClass.()Ljava/lang/String;"] = function() {
|
||||
return J2ME.newString(config.fgMidletClass);
|
||||
return J2ME.newString(fgMidletClass);
|
||||
};
|
||||
|
||||
Native["com/nokia/mid/s40/bg/BGUtils.getFGMIDletNumber.()I"] = function() {
|
||||
return 1;
|
||||
return fgMidletNumber;
|
||||
};
|
||||
|
||||
MIDP.additionalProperties = {};
|
||||
|
|
Загрузка…
Ссылка в новой задаче