Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Search suggestions now match queries against history urls, not just t…
Browse files Browse the repository at this point in the history
…itles
  • Loading branch information
anthonycr committed Aug 15, 2014
1 parent ccd68cc commit 0022806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acr/browser/thunder/DatabaseHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public List<HistoryItem> findItemsContaining(String search) {
List<HistoryItem> itemList = new ArrayList<HistoryItem>();
// select query
String selectQuery = "SELECT * FROM " + TABLE_HISTORY + " WHERE " + KEY_TITLE + " LIKE '%"
+ search + "%'";
+ search + "%' OR " + KEY_URL + " LIKE '%" + search + "%'";
Cursor cursor = mDatabase.rawQuery(selectQuery, null);

// looping through all rows and adding to list
Expand Down

0 comments on commit 0022806

Please sign in to comment.