From a2c08956fa37f84cd62df967f34670a35086efa6 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Tue, 14 Oct 2014 13:44:09 +0300 Subject: [PATCH] Show dialog only for users with outdated maps. --- android/src/com/mapswithme/maps/MWMActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/MWMActivity.java b/android/src/com/mapswithme/maps/MWMActivity.java index 773710e90f..f45bbc8f69 100644 --- a/android/src/com/mapswithme/maps/MWMActivity.java +++ b/android/src/com/mapswithme/maps/MWMActivity.java @@ -38,6 +38,7 @@ import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; +import com.mapswithme.country.ActiveCountryTree; import com.mapswithme.country.DownloadActivity; import com.mapswithme.maps.Ads.AdsManager; import com.mapswithme.maps.Ads.MenuAd; @@ -363,7 +364,8 @@ public class MWMActivity extends NvEventQueueActivity private void checkRoutingMaps() { - if (BuildConfig.IS_PRO && MWMApplication.get().nativeGetBoolean(IS_FIRST_ROUTING_VERSION_RUN, true)) + if (BuildConfig.IS_PRO && MWMApplication.get().nativeGetBoolean(IS_FIRST_ROUTING_VERSION_RUN, true) + && ActiveCountryTree.getCountInGroup(ActiveCountryTree.GROUP_OUT_OF_DATE) != 0) { MWMApplication.get().nativeSetBoolean(IS_FIRST_ROUTING_VERSION_RUN, false); new AlertDialog.Builder(this)