diff --git a/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java b/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java index 5b979912..181fac67 100644 --- a/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java +++ b/app/src/main/java/eu/faircode/netguard/DatabaseHelper.java @@ -159,7 +159,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { public Cursor getLog(String filter) { SQLiteDatabase db = this.getReadableDatabase(); String query = "SELECT ID AS _id, * FROM log"; - query += " WHERE ip like ?"; + query += " WHERE ip LIKE ?"; query += " ORDER BY time DESC"; return db.rawQuery(query, new String[]{"%" + filter + "%"}); diff --git a/app/src/main/res/menu/log.xml b/app/src/main/res/menu/log.xml index a4fe6908..04fabbb3 100644 --- a/app/src/main/res/menu/log.xml +++ b/app/src/main/res/menu/log.xml @@ -17,8 +17,8 @@ android:title="@string/menu_support" /> + netguard:showAsAction="always|collapseActionView" + android:icon="@drawable/ic_search_white_24dp" + android:title="@string/menu_search" />