Fix crashes when changing ignore updates checkboxes

This commit is contained in:
Daniel Martí 2013-10-23 18:14:54 +02:00
parent e1ad61a974
commit 1cc01b6c73

View File

@ -1264,8 +1264,8 @@ public class DB {
public void setIgnoreUpdates(String appid, boolean All, int This) { public void setIgnoreUpdates(String appid, boolean All, int This) {
db.execSQL("update " + TABLE_APP + " set" db.execSQL("update " + TABLE_APP + " set"
+ (All ? " ignoreAllUpdates="+All : "") + " ignoreAllUpdates=" + (All ? '1' : '0')
+ (This>0 ? " ignoreThisUpdate="+This : "") + ", ignoreThisUpdate="+This
+ " where id = ?", new String[] { appid }); + " where id = ?", new String[] { appid });
} }