forked from organicmaps/organicmaps
[android] Do not advertise guide again on the map update
This commit is contained in:
parent
c5b92f80ef
commit
8380b18fe8
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue