Fix crash when a new app appeared in the index
This commit is contained in:
parent
2650508999
commit
430cb42d14
@ -1127,7 +1127,14 @@ public class DB {
|
||||
values.put("antiFeatures", CommaSeparatedList.str(upapp.antiFeatures));
|
||||
values.put("requirements", CommaSeparatedList.str(upapp.requirements));
|
||||
values.put("compatible", upapp.compatible ? 1 : 0);
|
||||
|
||||
// Values to keep if already present
|
||||
if (oldapp == null) {
|
||||
values.put("ignoreUpdates", upapp.ignoreUpdates ? 1 : 0);
|
||||
} else {
|
||||
values.put("ignoreUpdates", oldapp.ignoreUpdates ? 1 : 0);
|
||||
}
|
||||
|
||||
if (oldapp != null) {
|
||||
db.update(TABLE_APP, values, "id = ?", new String[] { oldapp.id });
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user