From 53fbdd16ac909f362f042d0c8507a4b76c1c46a8 Mon Sep 17 00:00:00 2001 From: Dmitry Donskoy Date: Thu, 14 Feb 2019 14:27:42 +0300 Subject: [PATCH] [android] Added connection state validation --- android/src/com/mapswithme/maps/search/PromoCategory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/search/PromoCategory.java b/android/src/com/mapswithme/maps/search/PromoCategory.java index 79bf26c272..19d13d062f 100644 --- a/android/src/com/mapswithme/maps/search/PromoCategory.java +++ b/android/src/com/mapswithme/maps/search/PromoCategory.java @@ -7,6 +7,7 @@ import android.support.annotation.StringRes; import com.mapswithme.maps.Framework; import com.mapswithme.maps.R; +import com.mapswithme.util.ConnectionState; import java.util.ArrayList; import java.util.List; @@ -51,7 +52,7 @@ public enum PromoCategory @Override boolean isSupported() { - return Framework.nativeHasMegafonCategoryBanner(); + return ConnectionState.isConnected() && Framework.nativeHasMegafonCategoryBanner(); } @Override