From c651dc6b32ef4b5645f9249d621d56ce56e05c22 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 21 Dec 2014 12:25:33 +0100 Subject: [PATCH] check out variables --- OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java index 56db5b8fc0..b9689971ae 100644 --- a/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java @@ -480,6 +480,8 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment { public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { //fixes issue when local files not shown after switching tabs //TODO: But next line throws NPE in some circumstances when called from dashboard, so needs fixing, commented out for now + int test1 = listAdapter.getGroupCount(); + int test2 = getDownloadActivity().getLocalIndexInfos().size(); //if (listAdapter.getGroupCount() == 0 && getDownloadActivity().getLocalIndexInfos().size() > 0) { // for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()) { // listAdapter.addLocalIndexInfo(info);