From 3035c5b9a4c0d0edbd03c959b1956635d470be94 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 29 Dec 2014 16:48:12 -0800 Subject: Fix another crash when recreating fragment later --- src/github/daneren2005/dsub/fragments/SettingsFragment.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/github') 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 -- cgit v1.2.3