Merge "docs: Fixed typo in AlertDialog code snippet." into klp-docs

This commit is contained in:
Ricardo Cervera
2014-01-14 17:34:21 +00:00
committed by Android (Google) Code Review

View File

@@ -281,7 +281,7 @@ use the {@link android.app.AlertDialog.Builder#setItems setItems()} method:</p>
&#64;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