From 2a6eb578758edf326be9d0a5b62a5c3c6b9160db Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 26 Oct 2016 16:10:39 +0300 Subject: [PATCH] Fix #3099 --- OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java index 7e833d1e7d..a389292136 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchListAdapter.java @@ -151,6 +151,9 @@ public class QuickSearchListAdapter extends ArrayAdapter { } public void addListItem(QuickSearchListItem item) { + if (searchMoreItemPosition != -1 && item instanceof QuickSearchMoreListItem) { + return; + } setNotifyOnChange(false); add(item); acquireAdditionalItemsPositions();