Actually this needs to be done in onCreate on it crashes on some devices after asking for permission
This commit is contained in:
parent
e9d700e671
commit
f84a1d6be3
1 changed files with 4 additions and 3 deletions
|
@ -93,6 +93,10 @@ public class SettingsFragment extends PreferencesListFragment {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
initSettings();
|
||||||
|
setListeners();
|
||||||
|
hideSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void removePreviousPreferencesFile() {
|
private void removePreviousPreferencesFile() {
|
||||||
|
@ -1094,9 +1098,6 @@ public class SettingsFragment extends PreferencesListFragment {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
// Init the settings page interface
|
// Init the settings page interface
|
||||||
initSettings();
|
|
||||||
setListeners();
|
|
||||||
hideSettings();
|
|
||||||
initAccounts();
|
initAccounts();
|
||||||
|
|
||||||
if (LinphoneActivity.isInstanciated()) {
|
if (LinphoneActivity.isInstanciated()) {
|
||||||
|
|
Loading…
Reference in a new issue