mirror of
https://github.com/gsantner/dandelion
synced 2024-11-24 21:32:07 +01:00
Merge branch 'master' into ThemedSettings
This commit is contained in:
commit
2b79c0ea8c
1 changed files with 5 additions and 1 deletions
|
@ -145,7 +145,11 @@ public class PodSelectionDialog extends ThemedAppCompatDialogFragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected AppSettings getAppSettings() {
|
protected AppSettings getAppSettings() {
|
||||||
return app.getSettings();
|
if(isAdded()) {
|
||||||
|
return ((App) getActivity().getApplication()).getSettings();
|
||||||
|
} else {
|
||||||
|
return new AppSettings(getContext().getApplicationContext());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OnItemSelected(R.id.podselection__dialog__spinner_profile)
|
@OnItemSelected(R.id.podselection__dialog__spinner_profile)
|
||||||
|
|
Loading…
Reference in a new issue