From ac1ffb569d36cc060cebf15b677d788e1be25a0b Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 4 Feb 2016 07:23:27 +0100 Subject: [PATCH] Limit application access log to 50 entries --- app/src/main/java/eu/faircode/netguard/DatabaseHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java b/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java index f3cbb21e..d18f28ab 100644 --- a/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java +++ b/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java @@ -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)}); }