Reset access on set

This commit is contained in:
M66B 2016-02-05 21:13:32 +01:00
parent e4c64b7034
commit 695c46714a
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
ContentValues cv = new ContentValues();
cv.put("block", block);
cv.put("allowed", block < 0 ? -1 : 1 - block);
cv.put("allowed", -1);
if (db.update("access", cv, "ID = ?", new String[]{Long.toString(id)}) != 1)
Log.e(TAG, "Set access failed");