mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 970300 - singly-stringify JSON message; correct apkPackageName property name; r=mfinkle
This commit is contained in:
parent
72a7bb7001
commit
b11310a5bc
@ -115,7 +115,7 @@ public class EventListener implements GeckoEventListener {
|
||||
} else if (event.equals("Webapps:GetApkVersions")) {
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("versions", getApkVersions(GeckoAppShell.getGeckoInterface().getActivity(),
|
||||
message.getJSONArray("packageNames")).toString());
|
||||
message.getJSONArray("packageNames")));
|
||||
EventDispatcher.sendResponse(message, obj);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
@ -275,7 +275,7 @@ this.WebappManager = {
|
||||
|
||||
// Map APK names to APK versions.
|
||||
let apkNameToVersion = yield this._getAPKVersions(installedApps.map(app =>
|
||||
app.packageName).filter(packageName => !!packageName)
|
||||
app.apkPackageName).filter(apkPackageName => !!apkPackageName)
|
||||
);
|
||||
|
||||
// Map manifest URLs to APK versions, which is what the service needs
|
||||
@ -286,7 +286,7 @@ this.WebappManager = {
|
||||
let manifestUrlToApkVersion = {};
|
||||
let manifestUrlToApp = {};
|
||||
for (let app of installedApps) {
|
||||
manifestUrlToApkVersion[app.manifestURL] = apkNameToVersion[app.packageName] || 0;
|
||||
manifestUrlToApkVersion[app.manifestURL] = apkNameToVersion[app.apkPackageName] || 0;
|
||||
manifestUrlToApp[app.manifestURL] = app;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user