From 7a8acfa68e477d05ca8beeabc7cdd732639f18f4 Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Mon, 13 Jan 2014 16:44:19 -0800 Subject: [PATCH] docs: Fixed typo in AlertDialog code snippet. Bug-ID:10797361 Review URL: http://quixote.mtv.corp.google.com:8001/guide/topics/ui/dialogs.html#AlertDialog Change-Id: If93e140d624c2a4360a27bfae630f19fce24d7ab --- docs/html/guide/topics/ui/dialogs.jd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/html/guide/topics/ui/dialogs.jd b/docs/html/guide/topics/ui/dialogs.jd index d934c4b55e40c..043879c919776 100644 --- a/docs/html/guide/topics/ui/dialogs.jd +++ b/docs/html/guide/topics/ui/dialogs.jd @@ -281,7 +281,7 @@ use the {@link android.app.AlertDialog.Builder#setItems setItems()} method:

@Override public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); - builder.setTitle(R.string.pick_color); + builder.setTitle(R.string.pick_color) .setItems(R.array.colors_array, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // The 'which' argument contains the index position