Add description support, as well as handle VEVENT line continuation. Get rid of unuse...
[zxing.git] / core / src / com / google / zxing / client / result / VEventResultParser.java
index 69f4d5d..96f263e 100644 (file)
@@ -47,8 +47,9 @@ final class VEventResultParser extends ResultParser {
     String start = VCardResultParser.matchSingleVCardPrefixedField("DTSTART", rawText, true);
     String end = VCardResultParser.matchSingleVCardPrefixedField("DTEND", rawText, true);
     String location = VCardResultParser.matchSingleVCardPrefixedField("LOCATION", rawText, true);
+    String description = VCardResultParser.matchSingleVCardPrefixedField("DESCRIPTION", rawText, true);
     try {
-      return new CalendarParsedResult(summary, start, end, location, null, null);
+      return new CalendarParsedResult(summary, start, end, location, null, description);
     } catch (IllegalArgumentException iae) {
       return null;
     }