From 543915c0cb17c3a387ce4c46cf075c7813feac9c Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Fri, 30 Mar 2018 13:12:41 +0300 Subject: [PATCH] Fix small issue with index in wikivoyage search --- .../src/net/osmand/plus/wikivoyage/data/WikivoyageDbHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/WikivoyageDbHelper.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/WikivoyageDbHelper.java index 051288b40e..bbe4c8c373 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/WikivoyageDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/WikivoyageDbHelper.java @@ -87,7 +87,7 @@ public class WikivoyageDbHelper { try { for (int i = 0; i < cityIds.size(); i++) { String dbQuery = SEARCH_TABLE_SELECT + " WHERE " + SEARCH_COL_CITY_ID + " = ?"; - SQLiteCursor cursor = conn.rawQuery(dbQuery, new String[]{String.valueOf(cityIds.get(0))}); + SQLiteCursor cursor = conn.rawQuery(dbQuery, new String[]{String.valueOf(cityIds.get(i))}); if (cursor.moveToFirst()) { do { res.add(readSearchResult(cursor));