forked from organicmaps/organicmaps
Clear download suggestion after user makes some action in downloader.
This commit is contained in:
parent
8235684249
commit
56b7e641af
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue