コード例 #1
0
 public String getActionBarSubTitleBySurvey(Survey survey) {
   Program program = survey.getProgram();
   if (program.getName() != null) {
     return program.getName();
   }
   return "";
 }
コード例 #2
0
 /**
  * Returns a javascript that be inyected into the webview
  *
  * @return
  */
 public String getEntryAsJS() {
   return String.format(
       JAVASCRIPT_ADD_DATA,
       sent,
       expected,
       program.getName(),
       program.getUid(),
       getDateAsString());
 }