Apps were not getting a current version when upstreamVersioncode not specified.

The problem was that they defaulted to 0 if not specified, however
the code checking for current version was looking for -1 for a "no upstream version".
This commit is contained in:
Peter Serwylo 2014-03-27 22:22:54 +11:00
parent ce3f210919
commit 8efa9d609a

View File

@ -405,7 +405,7 @@ public class UpdateService extends IntentService implements ProgressListener {
latestcode = apk.vercode;
}
}
} else if (app.upstreamVercode == -1) {
} else {
// If the current version was not set we return the most recent apk.
int latestCode = -1;
for (Apk apk : apksForApp) {