mirror of https://github.com/M66B/NetGuard.git
Reset access on set
This commit is contained in:
parent
e4c64b7034
commit
695c46714a
|
@ -408,7 +408,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||||
|
|
||||||
ContentValues cv = new ContentValues();
|
ContentValues cv = new ContentValues();
|
||||||
cv.put("block", block);
|
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)
|
if (db.update("access", cv, "ID = ?", new String[]{Long.toString(id)}) != 1)
|
||||||
Log.e(TAG, "Set access failed");
|
Log.e(TAG, "Set access failed");
|
||||||
|
|
Loading…
Reference in New Issue