comment temporary fix for NPE in LocalIndexesFragment

This commit is contained in:
sonora 2014-12-21 11:31:42 +01:00
parent 78a84760c4
commit b91a5ce217

View file

@ -479,6 +479,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
//fixes issue when local files not shown after switching tabs
//TODO: But this throws NPE in some circumstances and needs fixing, so commented out for now
//if (listAdapter.getGroupCount() == 0 && getDownloadActivity().getLocalIndexInfos().size() > 0){
// for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
// listAdapter.addLocalIndexInfo(info);