forked from organicmaps/organicmaps
Merge pull request #3327 from trashkalmar/download-failed-dialog-fix
[android][downloader] fix: Do not show "Download failed" dialog until auto-retry fails.
This commit is contained in:
commit
905107fe74
1 changed files with 6 additions and 3 deletions
|
@ -64,10 +64,13 @@ public class MwmApplication extends Application
|
|||
for (MapManager.StorageCallbackData item : data)
|
||||
if (item.isLeafNode && item.newStatus == CountryItem.STATUS_FAILED)
|
||||
{
|
||||
Notifier.cancelDownloadSuggest();
|
||||
if (MapManager.nativeIsAutoretryFailed())
|
||||
{
|
||||
Notifier.cancelDownloadSuggest();
|
||||
|
||||
Notifier.notifyDownloadFailed(item.countryId, MapManager.nativeGetName(item.countryId));
|
||||
MapManager.sendErrorStat(Statistics.EventName.DOWNLOADER_ERROR, MapManager.nativeGetError(item.countryId));
|
||||
Notifier.notifyDownloadFailed(item.countryId, MapManager.nativeGetName(item.countryId));
|
||||
MapManager.sendErrorStat(Statistics.EventName.DOWNLOADER_ERROR, MapManager.nativeGetError(item.countryId));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue