mirror of https://github.com/M66B/NetGuard.git
Do not delete access rules on clear
This commit is contained in:
parent
bfbaae804b
commit
a7a8587fb8
|
@ -341,7 +341,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
|||
public DatabaseHelper clearAccess(int uid) {
|
||||
synchronized (mContext.getApplicationContext()) {
|
||||
SQLiteDatabase db = this.getReadableDatabase();
|
||||
db.delete("access", "uid = ?", new String[]{Integer.toString(uid)});
|
||||
db.delete("access", "uid = ? AND block < 0", new String[]{Integer.toString(uid)});
|
||||
}
|
||||
|
||||
for (AccessChangedListener listener : accessChangedListeners)
|
||||
|
|
Loading…
Reference in New Issue