revert test commit
This commit is contained in:
parent
e4e971df16
commit
90ebc3b46e
1 changed files with 1 additions and 5 deletions
|
@ -479,17 +479,13 @@ 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
|
||||||
//temporarily separate this if statement to identify NPE on soma installations
|
if (listAdapter.getGroupCount() == 0 && getDownloadActivity().getLocalIndexInfos().size() > 0){
|
||||||
//if (listAdapter.getGroupCount() == 0 && getDownloadActivity().getLocalIndexInfos().size() > 0){
|
|
||||||
if (listAdapter.getGroupCount() == 0){
|
|
||||||
if (getDownloadActivity().getLocalIndexInfos().size() > 0){
|
|
||||||
for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
|
for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
|
||||||
listAdapter.addLocalIndexInfo(info);
|
listAdapter.addLocalIndexInfo(info);
|
||||||
}
|
}
|
||||||
listAdapter.sortData();
|
listAdapter.sortData();
|
||||||
getExpandableListView().setAdapter(listAdapter);
|
getExpandableListView().setAdapter(listAdapter);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
ActionBar actionBar = getDownloadActivity().getSupportActionBar();
|
ActionBar actionBar = getDownloadActivity().getSupportActionBar();
|
||||||
//hide action bar from downloadindexfragment
|
//hide action bar from downloadindexfragment
|
||||||
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
|
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
|
||||||
|
|
Loading…
Reference in a new issue