ListPreferenceDialogFragment

public class ListPreferenceDialogFragment
extends PreferenceDialogFragment

java.lang.Object
   ↳ android.app.Fragment
     ↳ android.app.DialogFragment
       ↳ androidx.preference.PreferenceDialogFragment
         ↳ androidx.preference.ListPreferenceDialogFragment


This class is deprecated.
Use ListPreferenceDialogFragmentCompat instead

Summary

Inherited constants

Public constructors

ListPreferenceDialogFragment()

This constructor is deprecated. Use ListPreferenceDialogFragmentCompat instead

Public methods

static ListPreferenceDialogFragment newInstance(String key)

This method is deprecated. Use ListPreferenceDialogFragmentCompat instead

void onCreate(Bundle savedInstanceState)
void onDialogClosed(boolean positiveResult)

This method is deprecated. Use ListPreferenceDialogFragmentCompat instead

void onSaveInstanceState(Bundle outState)

Protected methods

void onPrepareDialogBuilder(AlertDialog.Builder builder)

This method is deprecated. Use PreferenceDialogFragmentCompat instead

Inherited methods

Public constructors

ListPreferenceDialogFragment

public ListPreferenceDialogFragment ()

This constructor is deprecated.
Use ListPreferenceDialogFragmentCompat instead

Public methods

newInstance

public static ListPreferenceDialogFragment newInstance (String key)

This method is deprecated.
Use ListPreferenceDialogFragmentCompat instead

Parameters
key String

Returns
ListPreferenceDialogFragment

onCreate

public void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle

onDialogClosed

public void onDialogClosed (boolean positiveResult)

This method is deprecated.
Use ListPreferenceDialogFragmentCompat instead

Parameters
positiveResult boolean

onSaveInstanceState

public void onSaveInstanceState (Bundle outState)

Parameters
outState Bundle

Protected methods

onPrepareDialogBuilder

protected void onPrepareDialogBuilder (AlertDialog.Builder builder)

This method is deprecated.
Use PreferenceDialogFragmentCompat instead

Prepares the dialog builder to be shown when the preference is clicked. Use this to set custom properties on the dialog.

Do not AlertDialog.Builder.create() or AlertDialog.Builder.show().

Parameters
builder AlertDialog.Builder