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) {
db.execSQL("update " + TABLE_APP + " set"
+ (All ? " ignoreAllUpdates="+All : "")
+ (This>0 ? " ignoreThisUpdate="+This : "")
+ " ignoreAllUpdates=" + (All ? '1' : '0')
+ ", ignoreThisUpdate="+This
+ " where id = ?", new String[] { appid });
}