Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2012-02-27 16:45:50 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:34:45 +0300
commit4d7feb8cd7de9701ed9b776c9e41830d60d16770 (patch)
tree4b41fc53a0110fb23dd952ada89de39260178122 /android/src/com/mapswithme/maps/DownloadUI.java
parent687a1b2d53c8134b8971e69444aeff928c6a7c32 (diff)
[android] Possibly closes #643 UnsatisfiedLinkError crash in DownloadUI activity
Diffstat (limited to 'android/src/com/mapswithme/maps/DownloadUI.java')
-rw-r--r--android/src/com/mapswithme/maps/DownloadUI.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/DownloadUI.java b/android/src/com/mapswithme/maps/DownloadUI.java
index 8579402f6f..b9d3a97ef6 100644
--- a/android/src/com/mapswithme/maps/DownloadUI.java
+++ b/android/src/com/mapswithme/maps/DownloadUI.java
@@ -38,6 +38,12 @@ public class DownloadUI extends PreferenceActivity
private String m_kb;
private String m_mb;
+ static
+ {
+ // Used to avoid crash when ndk library is not loaded.
+ // We just "touch" MWMActivity which should load it automatically
+ MWMActivity.getCurrentContext();
+ }
@Override
protected void onCreate(Bundle savedInstanceState)