opened
elysrivero99
username_0
When a chose the preference fragment the last fragment doesn't disappears:

My PreferenceFragment code:

public class SettingsFragment extends PreferenceFragment {
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
       addPreferencesFromResource(R.xml.pref_general);
        return super.onCreateView(inflater, container, savedInstanceState);
    }
}

![image](https://cloud.githubusercontent.com/assets/3760276/7449739/d47d91ba-f201-11e4-9f4b-45b015032b2c.png)
PreferenceFragment appears in front of the last Fragment
issue
closed
elysrivero99
username_0
issue
created
elysrivero99
username_0
The solution: Don't use android.support.v4.app.Fragment.
comment
created
carterh062
username_1
+1
comment