diff options
Diffstat (limited to 'android/src/com/mapswithme/maps/Framework.java')
-rw-r--r-- | android/src/com/mapswithme/maps/Framework.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/android/src/com/mapswithme/maps/Framework.java b/android/src/com/mapswithme/maps/Framework.java index bb3766b848..1e8da8a563 100644 --- a/android/src/com/mapswithme/maps/Framework.java +++ b/android/src/com/mapswithme/maps/Framework.java @@ -2,14 +2,14 @@ package com.mapswithme.maps; import android.graphics.Bitmap; import android.location.Location; +import android.text.TextUtils; + import androidx.annotation.IntDef; import androidx.annotation.MainThread; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.Size; import androidx.annotation.UiThread; -import android.text.TextUtils; - import com.mapswithme.maps.ads.Banner; import com.mapswithme.maps.ads.LocalAdInfo; import com.mapswithme.maps.api.ParsedRoutingData; @@ -528,6 +528,15 @@ public class Framework public static native void nativeSetSearchViewport(double lat, double lon, int zoom); + /** + * In case of the app was dumped by system to the hard drive, Java map object can be + * restored from parcelable, but c++ framework is created from scratch and internal + * place page object is not initialized. So, do not restore place page in this case. + * + * @return true if c++ framework has initialized internal place page object, otherwise - false. + */ + public static native boolean nativeHasPlacePageInfo(); + public enum LocalAdsEventType { LOCAL_ADS_EVENT_SHOW_POINT, |