diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2012-02-27 16:45:50 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:34:45 +0300 |
commit | 4d7feb8cd7de9701ed9b776c9e41830d60d16770 (patch) | |
tree | 4b41fc53a0110fb23dd952ada89de39260178122 /android/src/com/mapswithme/maps/DownloadUI.java | |
parent | 687a1b2d53c8134b8971e69444aeff928c6a7c32 (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.java | 6 |
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) |