1
0
Fork 0
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:
vanitasvitae 2016-10-23 00:48:41 +02:00
commit 2b79c0ea8c

View file

@ -145,7 +145,11 @@ public class PodSelectionDialog extends ThemedAppCompatDialogFragment {
@Override
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)