Refactoring

This commit is contained in:
M66B 2016-01-19 07:57:48 +01:00
parent e16be9e6f8
commit 2a4f381961
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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>