possible fix for NPE in manage maps
This commit is contained in:
parent
eb8b15c300
commit
e6aa38a89d
1 changed files with 3 additions and 0 deletions
|
@ -478,6 +478,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
|||
|
||||
@Override
|
||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||
if (this.isDetached()) {
|
||||
return;
|
||||
}
|
||||
//fixes issue when local files not shown after switching tabs
|
||||
if (listAdapter.getGroupCount() == 0 && getDownloadActivity().getLocalIndexInfos().size() > 0){
|
||||
for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
|
||||
|
|
Loading…
Reference in a new issue