Fix getAppsBasic
versionName was always null, hence hasUpdates was always false.
This commit is contained in:
parent
3ea7226330
commit
632f18c4a2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user