|
@@ -0,0 +1,38 @@
|
|
|
+package com.noahvogt.miniprojekt.ui.home;
|
|
|
+
|
|
|
+import android.os.Bundle;
|
|
|
+
|
|
|
+import android.content.DialogInterface;
|
|
|
+import android.os.Bundle;
|
|
|
+import android.view.LayoutInflater;
|
|
|
+import android.view.MenuItem;
|
|
|
+import android.view.View;
|
|
|
+import android.view.ViewGroup;
|
|
|
+import android.widget.EditText;
|
|
|
+import android.widget.ImageButton;
|
|
|
+import android.widget.PopupMenu;
|
|
|
+import android.widget.Toast;
|
|
|
+
|
|
|
+import androidx.annotation.NonNull;
|
|
|
+import androidx.annotation.Nullable;
|
|
|
+import androidx.appcompat.app.AlertDialog;
|
|
|
+import androidx.fragment.app.DialogFragment;
|
|
|
+
|
|
|
+import androidx.fragment.app.Fragment;
|
|
|
+import androidx.appcompat.app.AlertDialog;
|
|
|
+import androidx.preference.Preference;
|
|
|
+import androidx.preference.PreferenceFragmentCompat;
|
|
|
+
|
|
|
+import com.noahvogt.miniprojekt.R;
|
|
|
+
|
|
|
+public class SettingsFragment extends PreferenceFragmentCompat {
|
|
|
+
|
|
|
+ public static SettingsFragment newInstance() {
|
|
|
+ return new SettingsFragment();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
|
|
+ addPreferencesFromResource(R.xml.settings);
|
|
|
+ }
|
|
|
+}
|