diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-12-29 16:48:12 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-12-29 16:48:12 -0800 |
commit | 3035c5b9a4c0d0edbd03c959b1956635d470be94 (patch) | |
tree | bb1e655c81de3efaa6897aecb3c4ed468a87c6a6 | |
parent | 324253d33a0d9460091fd83ce8289578c2e728a1 (diff) | |
download | dsub-3035c5b9a4c0d0edbd03c959b1956635d470be94.tar.gz dsub-3035c5b9a4c0d0edbd03c959b1956635d470be94.tar.bz2 dsub-3035c5b9a4c0d0edbd03c959b1956635d470be94.zip |
Fix another crash when recreating fragment later
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SettingsFragment.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SettingsFragment.java b/src/github/daneren2005/dsub/fragments/SettingsFragment.java index e040e59e..1d08796d 100644 --- a/src/github/daneren2005/dsub/fragments/SettingsFragment.java +++ b/src/github/daneren2005/dsub/fragments/SettingsFragment.java @@ -31,6 +31,7 @@ import android.preference.PreferenceCategory; import android.preference.PreferenceScreen; import android.text.InputType; import android.util.Log; +import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; @@ -95,8 +96,16 @@ public class SettingsFragment extends PreferenceCompatFragment implements Shared @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle bundle) { + View root = super.onCreateView(inflater, container, bundle); + this.setTitle(getResources().getString(R.string.settings_title)); initSettings(); + + return root; } @Override |