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();