Limit application access log to 50 entries

This commit is contained in:
M66B 2016-02-04 07:23:27 +01:00
parent 338bf5ccec
commit ac1ffb569d
1 changed files with 1 additions and 0 deletions

View File

@ -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)});
}