From 53fc6d5ace8aa0d662e00b87be04b63f1bda5444 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Fri, 27 Mar 2015 15:01:41 +0300 Subject: [PATCH] Fixed possible crashes. --- .../src/com/mapswithme/maps/settings/SettingsActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/settings/SettingsActivity.java b/android/src/com/mapswithme/maps/settings/SettingsActivity.java index 32aa76d72e..823a69d967 100644 --- a/android/src/com/mapswithme/maps/settings/SettingsActivity.java +++ b/android/src/com/mapswithme/maps/settings/SettingsActivity.java @@ -53,7 +53,10 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference { super.onCreate(savedInstanceState); - // TODO refactor. use preference fragments instead. + // 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().initStats(); addPreferencesFromResource(R.xml.preferences); initPreferences(); yotaSetup();