package de.christinecoenen.code.zapp.app.settings.ui;


import android.os.Bundle;

import androidx.preference.PreferenceFragmentCompat;

import de.christinecoenen.code.zapp.R;
import de.christinecoenen.code.zapp.app.settings.helper.ShortcutPreference;

/**
 * Use the {@link SettingsFragment#newInstance} factory method to
 * create an instance of this fragment.
 */
public class SettingsFragment extends PreferenceFragmentCompat {

	private static final String PREF_SHORTCUTS = "pref_shortcuts";

	/**
	 * Use this factory method to create a new instance of
	 * this fragment.
	 */
	public static SettingsFragment newInstance() {
		return new SettingsFragment();
	}

	private ShortcutPreference shortcutPreference;

	public SettingsFragment() {
		// required empty public constructor
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.preferences);

		shortcutPreference = (ShortcutPreference) getPreferenceScreen()
			.findPreference(PREF_SHORTCUTS);
	}

	@Override
	public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {

	}

	@Override
	public void onResume() {
		super.onResume();
		shortcutPreference.setOnPreferenceChangeListener(shortcutPreference);
	}

	@Override
	public void onPause() {
		super.onPause();
		shortcutPreference.setOnPreferenceChangeListener(null);
	}
}

@@ -577,23 +577,16 @@
 .%0A%09 */%0A%09
-public 
 static S
@@ -617,16 +617,16 @@
 nce() %7B%0A
+
 %09%09return
@@ -807,16 +807,27 @@
 onCreate
+Preferences
 (Bundle 
@@ -848,49 +848,27 @@
 tate
-) %7B%0A%09%09super.onCreate(savedInstanceState);
+, String rootKey) %7B
 %0A%09%09a
@@ -980,16 +980,16 @@
 creen()%0A
+
 %09%09%09.find
@@ -1024,102 +1024,8 @@
 %09%7D%0A%0A
-%09@Override%0A%09public void onCreatePreferences(Bundle savedInstanceState, String rootKey) %7B%0A%0A%09%7D%0A%0A
 %09@Ov

Remove unused code