From 019d9987c754102c9608c3cf9956d56eacee3464 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 4 Feb 2015 21:50:23 -0800 Subject: [PATCH] fix bug where email didn't get launched when the only choice --- .../XWords4/src/org/eehouse/android/xw4/DlgDelegate.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java index e2fe24048..ab5edcfe4 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java @@ -115,7 +115,6 @@ public class DlgDelegate { } public static final int SMS_BTN = AlertDialog.BUTTON_POSITIVE; - public static final int EMAIL_BTN = AlertDialog.BUTTON_NEGATIVE; public static final int NFC_BTN = AlertDialog.BUTTON_NEUTRAL; public static final int DISMISS_BUTTON = 0; @@ -354,8 +353,9 @@ public class DlgDelegate { } else { post( new Runnable() { public void run() { - m_clickCallback.dlgButtonClicked( action, EMAIL_BTN, - null ); + DlgClickNotify.InviteMeans means + = DlgClickNotify.InviteMeans.EMAIL; + m_clickCallback.inviteChoiceMade( action, means, null ); } }); }