From fb5bc069e76d74d7dfbe8ef9126a4967d3ffa297 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Fri, 13 Jul 2018 14:21:15 -0700 Subject: [PATCH] Fix incorrect imports for AlertDialog Test: robotests Change-Id: Ic17121cfd4dbe2d15f6d2250649cc71b82aa2c15 --- src/com/android/settings/CustomListPreference.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/com/android/settings/CustomListPreference.java b/src/com/android/settings/CustomListPreference.java index 8838c10a416..6ac7a56d938 100644 --- a/src/com/android/settings/CustomListPreference.java +++ b/src/com/android/settings/CustomListPreference.java @@ -16,7 +16,6 @@ package com.android.settings; -import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; @@ -41,7 +40,7 @@ public class CustomListPreference extends ListPreference { } public CustomListPreference(Context context, AttributeSet attrs, int defStyleAttr, - int defStyleRes) { + int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); } @@ -65,7 +64,7 @@ public class CustomListPreference extends ListPreference { * * @param value the value the user is about to choose * @return the message to show in a confirmation dialog, or {@code null} to - * not request confirmation + * not request confirmation */ protected CharSequence getConfirmationMessage(String value) { return null; @@ -205,7 +204,7 @@ public class CustomListPreference extends ListPreference { public static class ConfirmDialogFragment extends InstrumentedDialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { - return new AlertDialog.Builder(getActivity()) + return new Builder(getActivity()) .setMessage(getArguments().getCharSequence(Intent.EXTRA_TEXT)) .setPositiveButton(android.R.string.ok, new OnClickListener() { @Override