[android] Do not advertise guide again on the map update

This commit is contained in:
Alex Zolotarev 2013-11-15 14:39:10 +03:00 committed by Alex Zolotarev
parent c5b92f80ef
commit 8380b18fe8

View file

@ -92,10 +92,12 @@ public class MWMApplication extends android.app.Application implements MapStorag
if (Utils.hasAnyGoogleStoreInstalled())
{
final GuideInfo info = Framework.getGuideInfoForIndex(idx);
if (info != null && !GuidesUtils.isGuideInstalled(info.mAppId, this))
if (info != null && !GuidesUtils.isGuideInstalled(info.mAppId, this)
&& !Framework.wasAdvertised(info.mAppId))
{
final Notifier notifier = new Notifier(this);
notifier.placeGuideAvailable(info.mAppId, info.mTitle, info.mMessage);
Framework.setWasAdvertised(info.mAppId);
}
}
}