Merge pull request #877 from Bars107/downloads

Fixed null pointer in downloadIndexThread
This commit is contained in:
vshcherb 2014-09-16 14:26:52 +02:00
commit bb6ea056e8

View file

@ -391,7 +391,7 @@ public class DownloadIndexesThread {
uiFragment.getDownloadActivity().getEntriesToDownload().put(basemap, downloadEntry);
AccessibleToast.makeText(uiFragment.getDownloadActivity(), R.string.basemap_was_selected_to_download,
Toast.LENGTH_LONG).show();
uiFragment.findViewById(R.id.DownloadButton).setVisibility(View.VISIBLE);
uiFragment.getDownloadActivity().findViewById(R.id.DownloadButton).setVisibility(View.VISIBLE);
}
}
if (indexFiles.isIncreasedMapVersion()) {