use of androidx.preference.PreferenceFragment in project SmartTubeNext by yuliskov.
the class SettingsFragment method onPreferenceStartScreen.
@Override
public boolean onPreferenceStartScreen(PreferenceFragment preferenceFragment, PreferenceScreen preferenceScreen) {
PreferenceFragment frag = buildPreferenceFragment(R.xml.settings, preferenceScreen.getKey());
startPreferenceFragment(frag);
return true;
}
use of androidx.preference.PreferenceFragment in project SmartTubeNext by yuliskov.
the class SettingsFragment method buildPreferenceFragment.
private PreferenceFragment buildPreferenceFragment(int preferenceResId, String root) {
PreferenceFragment fragment = new PrefFragment();
Bundle args = new Bundle();
args.putInt(PREFERENCE_RESOURCE_ID, preferenceResId);
args.putString(PREFERENCE_ROOT, root);
fragment.setArguments(args);
return fragment;
}
use of androidx.preference.PreferenceFragment in project TV-youtube by chiou711.
the class SettingsFragment method buildPreferenceFragment.
private PreferenceFragment buildPreferenceFragment(int preferenceResId, String root) {
PreferenceFragment fragment = new PrefFragment();
Bundle args = new Bundle();
args.putInt(PREFERENCE_RESOURCE_ID, preferenceResId);
args.putString(PREFERENCE_ROOT, root);
fragment.setArguments(args);
return fragment;
}
use of androidx.preference.PreferenceFragment in project TV-youtube by chiou711.
the class SettingsFragment method onPreferenceStartScreen.
@Override
public boolean onPreferenceStartScreen(PreferenceFragment preferenceFragment, PreferenceScreen preferenceScreen) {
PreferenceFragment frag = buildPreferenceFragment(R.xml.settings, preferenceScreen.getKey());
startPreferenceFragment(frag);
return true;
}
use of androidx.preference.PreferenceFragment in project SmartTubeNext by yuliskov.
the class AppDialogFragment method onPreferenceStartScreen.
@Override
public boolean onPreferenceStartScreen(PreferenceFragment preferenceFragment, PreferenceScreen preferenceScreen) {
PreferenceFragment frag = buildPreferenceFragment();
startPreferenceFragment(frag);
return true;
}
Aggregations