Fix getAppsBasic

versionName was always null, hence hasUpdates was always false.
This commit is contained in:
Daniel Martí 2013-07-22 14:57:40 +02:00
parent 3ea7226330
commit 632f18c4a2

View File

@ -796,7 +796,7 @@ public class DB {
for (App app : result) {
Apk curver = app.getCurrentVersion();
if (curver != null
&& app.installedVersion != null
&& app.installedVerCode > 0
&& app.installedVerCode < curver.vercode) {
app.hasUpdates = true;
app.updateVersion = curver.version;
@ -949,7 +949,7 @@ public class DB {
for (App app : result) {
Apk curver = app.getCurrentVersion();
if (curver != null
&& app.installedVersion != null
&& app.installedVerCode > 0
&& app.installedVerCode < curver.vercode) {
app.hasUpdates = true;
app.updateVersion = curver.version;