From 15fd0524613226483b14d5a46efb90c8207d1307 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Sun, 20 Sep 2015 04:21:40 +0300 Subject: [PATCH] [android] Initialize core first. --- .../src/com/mapswithme/maps/base/BaseMwmFragmentActivity.java | 2 +- android/src/com/mapswithme/maps/settings/SettingsActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/com/mapswithme/maps/base/BaseMwmFragmentActivity.java b/android/src/com/mapswithme/maps/base/BaseMwmFragmentActivity.java index 0cc61ee100..3a8d59c311 100644 --- a/android/src/com/mapswithme/maps/base/BaseMwmFragmentActivity.java +++ b/android/src/com/mapswithme/maps/base/BaseMwmFragmentActivity.java @@ -30,8 +30,8 @@ public class BaseMwmFragmentActivity extends AppCompatActivity getWindow().clearFlags(android.view.WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); } - MwmApplication.get().initCounters(); MwmApplication.get().initNativeCore(); + MwmApplication.get().initCounters(); ViewServer.get(this).addWindow(this); attachDefaultFragment(); diff --git a/android/src/com/mapswithme/maps/settings/SettingsActivity.java b/android/src/com/mapswithme/maps/settings/SettingsActivity.java index a5c6997c9c..bf754752bd 100644 --- a/android/src/com/mapswithme/maps/settings/SettingsActivity.java +++ b/android/src/com/mapswithme/maps/settings/SettingsActivity.java @@ -56,8 +56,8 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference // TODO remove after refactoring to fragments // this initialisation is necessary hence Activity isn't extended from BaseMwmActivity // try to prevent possible crash if this is the only activity in application - MwmApplication.get().initCounters(); MwmApplication.get().initNativeCore(); + MwmApplication.get().initCounters(); addPreferencesFromResource(R.xml.preferences); initPreferences(); yotaSetup();