Skip to content

Commit

Permalink
Merge pull request google#78 from alsutton/fix_feedback_sync_can_inco…
Browse files Browse the repository at this point in the history
…rrectly_number_questions

Use an empty ArrayList for each session being sychronsied
  • Loading branch information
romannurik committed Jan 7, 2015
2 parents 46f5a18 + 32cafb4 commit b8b238f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ public void sync() {
null,
null);
LOGD(TAG, "Number of unsynced feedbacks: " + c.getCount());
List<String> questions = new ArrayList<String>();
List<String> updatedSessions = new ArrayList<String>();

while (c.moveToNext()) {
String sessionId = c.getString(c.getColumnIndex(ScheduleContract.Feedback.SESSION_ID));

List<String> questions = new ArrayList<String>();
questions.add(c.getString(c.getColumnIndex(ScheduleContract.Feedback.SESSION_RATING)));
questions.add(c.getString(c.getColumnIndex(ScheduleContract.Feedback.ANSWER_RELEVANCE)));
questions.add(c.getString(c.getColumnIndex(ScheduleContract.Feedback.ANSWER_CONTENT)));
Expand Down

0 comments on commit b8b238f

Please sign in to comment.