forked from organicmaps/organicmaps
Fixed possible crashes.
This commit is contained in:
parent
b4303158e3
commit
53fc6d5ace
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue