Backport PreferenceFragment based on https://github.com/kolavar/android-support-v4-preferencefragment