mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-26 16:13:01 +00:00
Fixed log view menu
This commit is contained in:
parent
e16be9e6f8
commit
a822d9da2c
2 changed files with 3 additions and 2 deletions
|
@ -159,7 +159,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||||
public Cursor getLog(String filter) {
|
public Cursor getLog(String filter) {
|
||||||
SQLiteDatabase db = this.getReadableDatabase();
|
SQLiteDatabase db = this.getReadableDatabase();
|
||||||
String query = "SELECT ID AS _id, * FROM log";
|
String query = "SELECT ID AS _id, * FROM log";
|
||||||
query += " WHERE ip like ?";
|
query += " WHERE ip LIKE ?";
|
||||||
query += " ORDER BY time DESC";
|
query += " ORDER BY time DESC";
|
||||||
|
|
||||||
return db.rawQuery(query, new String[]{"%" + filter + "%"});
|
return db.rawQuery(query, new String[]{"%" + filter + "%"});
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:netguard="http://schemas.android.com/apk/res-auto">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_enabled"
|
android:id="@+id/menu_enabled"
|
||||||
android:checkable="true"
|
android:checkable="true"
|
||||||
|
|
Loading…
Reference in a new issue