fix bug where email didn't get launched when the only choice

This commit is contained in:
Eric House 2015-02-04 21:50:23 -08:00
parent 2c7469f228
commit 019d9987c7

View file

@ -115,7 +115,6 @@ public class DlgDelegate {
} }
public static final int SMS_BTN = AlertDialog.BUTTON_POSITIVE; 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 NFC_BTN = AlertDialog.BUTTON_NEUTRAL;
public static final int DISMISS_BUTTON = 0; public static final int DISMISS_BUTTON = 0;
@ -354,8 +353,9 @@ public class DlgDelegate {
} else { } else {
post( new Runnable() { post( new Runnable() {
public void run() { public void run() {
m_clickCallback.dlgButtonClicked( action, EMAIL_BTN, DlgClickNotify.InviteMeans means
null ); = DlgClickNotify.InviteMeans.EMAIL;
m_clickCallback.inviteChoiceMade( action, means, null );
} }
}); });
} }