comment temporary fix for NPE in LocalIndexesFragment
This commit is contained in:
parent
78a84760c4
commit
b91a5ce217
1 changed files with 1 additions and 0 deletions
|
@ -479,6 +479,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||||
//fixes issue when local files not shown after switching tabs
|
//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){
|
//if (listAdapter.getGroupCount() == 0 && getDownloadActivity().getLocalIndexInfos().size() > 0){
|
||||||
// for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
|
// for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
|
||||||
// listAdapter.addLocalIndexInfo(info);
|
// listAdapter.addLocalIndexInfo(info);
|
||||||
|
|
Loading…
Reference in a new issue