From 466c4b67450dc0366815950541e5449ece7840b5 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Thu, 23 Nov 2017 16:25:51 +0200 Subject: [PATCH] Refactor finding headers --- OsmAnd/src/net/osmand/plus/osmedit/OsmEditsAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsAdapter.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsAdapter.java index c55fb4e2ac..e6ddc88858 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsAdapter.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsAdapter.java @@ -149,7 +149,7 @@ public class OsmEditsAdapter extends ArrayAdapter { int count = 0; for (int i = 0; i < items.size(); i++) { Object item = items.get(i); - if (!(item instanceof OsmPoint)) { + if (item instanceof Integer) { count++; } }