Merge pull request #1016 from Bars107/master

Changed code to find exact problem of manage map crashes
This commit is contained in:
Denis 2014-12-19 16:48:13 +02:00
commit 4e4c56458e

View file

@ -479,7 +479,8 @@ 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){
if (listAdapter.getGroupCount() == 0 &&
getDownloadActivity().getLocalIndexInfos().size() > 0){
for(LocalIndexInfo info : getDownloadActivity().getLocalIndexInfos()){
listAdapter.addLocalIndexInfo(info);
}