set the default value in OneTimeCommunication and CopySenttoIt

parent 628c9287
......@@ -35,20 +35,20 @@ public enum ViewType {
this.id = id;
this.displayString = displayString;
}
/* getters */
public static int getId(ViewType viewType) {
return viewType.id;
}
public int getId() {
return this.id;
}
public static String getDisplayString(ViewType viewType) {
return viewType.displayString;
}
public String getDisplayString() {
return this.displayString;
}
......
......@@ -210,8 +210,8 @@ public class CatalogueVariableScreen extends AppCompatActivity {
shortDescriptionView.setMovementMethod(LinkMovementMethod.getInstance());
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
shortDescriptionView.setText(Html.fromHtml(mCatalogueItemShortDescription, Html.FROM_HTML_MODE_LEGACY));
} else {
shortDescriptionView.setText(Html.fromHtml(mCatalogueItemShortDescription));
} else {
shortDescriptionView.setText(Html.fromHtml(mCatalogueItemShortDescription));
}
mContainerLayout.addView(shortDescriptionView, childControlViewLayoutParams);
......
......@@ -42,7 +42,7 @@ public class Util {
case YES_NO:
Spinner spinner = new Spinner(context);
ArrayAdapter<String> spinnerArrayAdapter =
new ArrayAdapter<>(context, android.R.layout.simple_spinner_item, new String[] {"Yes", "No"});
new ArrayAdapter<>(context, android.R.layout.simple_spinner_item, new String[] {"None","Yes", "No"});
spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(spinnerArrayAdapter);
return spinner;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment