Skip to content

Commit

Permalink
Native Button code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SebaMutuku committed Jun 29, 2022
1 parent d40596e commit b6e4185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,8 @@ private void createRadioButton(RelativeLayout rootLayout, JSONObject jsonObject,
if(valueString != null && valueString.startsWith("{"))
{
JSONObject translationObject = new JSONObject(valueString);
valueString = translationObject.optString(JsonFormConstants.VALUE) != null ? translationObject.optString(JsonFormConstants.VALUE) : "";
translationObject.optString(JsonFormConstants.VALUE);
valueString = translationObject.optString(JsonFormConstants.VALUE);
}

if (!TextUtils.isEmpty(valueString) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,5 +482,4 @@ public void testUpdateUiByCalculation() throws JSONException {
Pair<String[], JSONObject> pair = activity.getCalculationAddressAndValue(view);
assertNotNull(pair);
}

}

0 comments on commit b6e4185

Please sign in to comment.