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:
parent
ce3f210919
commit
8efa9d609a
@ -405,7 +405,7 @@ public class UpdateService extends IntentService implements ProgressListener {
|
|||||||
latestcode = apk.vercode;
|
latestcode = apk.vercode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (app.upstreamVercode == -1) {
|
} else {
|
||||||
// If the current version was not set we return the most recent apk.
|
// If the current version was not set we return the most recent apk.
|
||||||
int latestCode = -1;
|
int latestCode = -1;
|
||||||
for (Apk apk : apksForApp) {
|
for (Apk apk : apksForApp) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user