mirror of https://github.com/M66B/NetGuard.git
Limit application access log to 50 entries
This commit is contained in:
parent
338bf5ccec
commit
ac1ffb569d
|
@ -395,6 +395,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
|||
String query = "SELECT ID AS _id, *";
|
||||
query += " FROM access WHERE uid = ?";
|
||||
query += " ORDER BY time DESC";
|
||||
query += " LIMIT 50";
|
||||
return db.rawQuery(query, new String[]{Integer.toString(uid)});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue