temporarily dactivate code to test NPE
This commit is contained in:
parent
c4b41beeb0
commit
78a84760c4
1 changed files with 7 additions and 7 deletions
|
@ -479,13 +479,13 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
|||
@Override
|
||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||
//fixes issue when local files not shown after switching tabs
|
||||
if (listAdapter.getGroupCount() == 0 && getDownloadActivity().getLocalIndexInfos().size() > 0){
|
||||
for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
|
||||
listAdapter.addLocalIndexInfo(info);
|
||||
}
|
||||
listAdapter.sortData();
|
||||
getExpandableListView().setAdapter(listAdapter);
|
||||
}
|
||||
//if (listAdapter.getGroupCount() == 0 && getDownloadActivity().getLocalIndexInfos().size() > 0){
|
||||
// for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
|
||||
// listAdapter.addLocalIndexInfo(info);
|
||||
// }
|
||||
// listAdapter.sortData();
|
||||
// getExpandableListView().setAdapter(listAdapter);
|
||||
//}
|
||||
ActionBar actionBar = getDownloadActivity().getSupportActionBar();
|
||||
//hide action bar from downloadindexfragment
|
||||
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
|
||||
|
|
Loading…
Reference in a new issue