Clear download suggestion after user makes some action in downloader.

This commit is contained in:
Dmitry Yunitsky 2014-12-10 16:53:10 +03:00 committed by Alex Zolotarev
parent 8235684249
commit 56b7e641af
2 changed files with 6 additions and 0 deletions

View file

@ -69,6 +69,7 @@ public class MWMApplication extends android.app.Application implements ActiveCou
@Override
public void onCountryStatusChanged(int group, int position, int oldStatus, int newStatus)
{
Notifier.cancelDownloadSuggest();
if (newStatus == MapStorage.DOWNLOAD_FAILED)
{
CountryItem item = ActiveCountryTree.getCountryItem(group, position);

View file

@ -130,6 +130,11 @@ public class Notifier
Statistics.INSTANCE.trackDownloadCountryNotificationShown();
}
public static void cancelDownloadSuggest()
{
getNotificationManager().cancel(ID_DOWNLOAD_NEW_COUNTRY);
}
public static void notifyAboutFreePro(Activity activity)
{
if (MWMApplication.get().nativeGetBoolean(MWMApplication.IS_PRESTIGIO_PREINSTALLED, false))