From 2e7c8e952cbc30fbef083c154662e7c3b6fa253a Mon Sep 17 00:00:00 2001 From: David Friedman Date: Thu, 26 Sep 2013 14:28:51 -0700 Subject: [PATCH] Docs: Changed // Send the negative button event back to the host activity mListener.onDialogPositiveClick(NoticeDialogFragment.this); to // Send the negative button event back to the host activity mListener.onDialogNegativeClick(NoticeDialogFragment.this); Bug: 10641712 Change-Id: Ib6af3318928c56cf9d12adbffbd7edff23f116db --- 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 09767bff07547..d934c4b55e40c 100644 --- a/docs/html/guide/topics/ui/dialogs.jd +++ b/docs/html/guide/topics/ui/dialogs.jd @@ -593,7 +593,7 @@ public class NoticeDialogFragment extends DialogFragment { .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // Send the negative button event back to the host activity - mListener.onDialogPositiveClick(NoticeDialogFragment.this); + mListener.onDialogNegativeClick(NoticeDialogFragment.this); } }); return builder.create();