Skip to content

Commit

Permalink
External app parameters with embedded colons do not parse correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
batkinson committed Jun 16, 2016
1 parent 5241490 commit 88174f1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ public ExStringWidget(Context context, FormEntryPrompt prompt) {
mAnswer.setClickable(false);
}

String appearance = prompt.getAppearanceHint();
String[] attrs = appearance.split(":");
final String intentName = ExternalAppsUtils.extractIntentName(attrs[1]);
final Map<String, String> exParams = ExternalAppsUtils.extractParameters(attrs[1]);
String exSpec = prompt.getAppearanceHint().replaceFirst("^ex[:]", "");
final String intentName = ExternalAppsUtils.extractIntentName(exSpec);
final Map<String, String> exParams = ExternalAppsUtils.extractParameters(exSpec);
final String buttonText;
final String errorString;
String v = mPrompt.getSpecialFormQuestionText("buttonText");
Expand Down

0 comments on commit 88174f1

Please sign in to comment.