mirror of https://github.com/M66B/NetGuard.git
Refactoring
This commit is contained in:
parent
e16be9e6f8
commit
2a4f381961
|
@ -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 + "%"});
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
android:title="@string/menu_support" />
|
||||
<item
|
||||
android:id="@+id/menu_search"
|
||||
android:icon="@drawable/ic_search_white_24dp"
|
||||
android:title="@string/menu_search"
|
||||
netguard:actionViewClass="android.support.v7.widget.SearchView"
|
||||
netguard:showAsAction="always|collapseActionView" />
|
||||
netguard:showAsAction="always|collapseActionView"
|
||||
android:icon="@drawable/ic_search_white_24dp"
|
||||
android:title="@string/menu_search" />
|
||||
</menu>
|
||||
|
|
Loading…
Reference in New Issue