Small fix - map region context menu
This commit is contained in:
parent
a14fd90eab
commit
cce6f72db8
1 changed files with 6 additions and 2 deletions
|
@ -127,7 +127,9 @@ public class MapDataMenuController extends MenuController {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!downloadThread.getIndexes().isDownloadedFromInternet) {
|
if (!downloadThread.getIndexes().isDownloadedFromInternet) {
|
||||||
downloadThread.runReloadIndexFiles();
|
if (mapActivity.getMyApplication().getSettings().isInternetConnectionAvailable()) {
|
||||||
|
downloadThread.runReloadIndexFiles();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateData();
|
updateData();
|
||||||
|
@ -255,8 +257,10 @@ public class MapDataMenuController extends MenuController {
|
||||||
rightTitleButtonController.visible = indexItem != null && indexItem.isDownloaded();
|
rightTitleButtonController.visible = indexItem != null && indexItem.isDownloaded();
|
||||||
topRightTitleButtonController.visible = otherIndexItems.size() > 0;
|
topRightTitleButtonController.visible = otherIndexItems.size() > 0;
|
||||||
|
|
||||||
boolean downloadIndexes = !downloadThread.getIndexes().isDownloadedFromInternet
|
boolean downloadIndexes = getMapActivity().getMyApplication().getSettings().isInternetConnectionAvailable()
|
||||||
|
&& !downloadThread.getIndexes().isDownloadedFromInternet
|
||||||
&& !downloadThread.getIndexes().downloadFromInternetFailed;
|
&& !downloadThread.getIndexes().downloadFromInternetFailed;
|
||||||
|
|
||||||
boolean isDownloading = indexItem != null && downloadThread.isDownloading(indexItem);
|
boolean isDownloading = indexItem != null && downloadThread.isDownloading(indexItem);
|
||||||
if (isDownloading) {
|
if (isDownloading) {
|
||||||
titleProgressController.setMapDownloadMode();
|
titleProgressController.setMapDownloadMode();
|
||||||
|
|
Loading…
Reference in a new issue