Skip to content

Commit

Permalink
Revert to "enable_message_center" key in FeedbackDialog, since that i…
Browse files Browse the repository at this point in the history
…s what the server is already sending, and iOS already uses.
  • Loading branch information
skykelsey committed Sep 25, 2014
1 parent bdf9373 commit cfea3ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class FeedbackDialogInteraction extends Interaction {

private static final String KEY_ASK_FOR_EMAIL = "ask_for_email";
private static final String KEY_EMAIL_REQUIRED = "email_required";
private static final String KEY_MESSAGE_CENTER_ENABLED = "message_center_enabled";
private static final String KEY_ENABLE_MESSAGE_CENTER = "enable_message_center";

private static final String KEY_TITLE = "title";
private static final String KEY_BODY = "body";
Expand Down Expand Up @@ -54,8 +54,8 @@ public boolean isEmailRequired() {

public boolean isMessageCenterEnabled() {
InteractionConfiguration configuration = getConfiguration();
if (configuration != null && !configuration.isNull(KEY_MESSAGE_CENTER_ENABLED)) {
return configuration.optBoolean(KEY_MESSAGE_CENTER_ENABLED, true);
if (configuration != null && !configuration.isNull(KEY_ENABLE_MESSAGE_CENTER)) {
return configuration.optBoolean(KEY_ENABLE_MESSAGE_CENTER, true);
}
return true;
}
Expand Down

0 comments on commit cfea3ce

Please sign in to comment.