aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlice Yang <alice@google.com>2012-05-15 17:26:26 -0700
committerAlice Yang <alice@google.com>2012-05-15 17:26:26 -0700
commita991358d94947cc0dbd6a8d75dd77b5fd377734b (patch)
treefab60242264e667240b20dbcca32b3e5ffda54b9 /src
parent1546ea7c0d8791a690af9326904f1472321c95df (diff)
downloadcalendar-a991358d94947cc0dbd6a8d75dd77b5fd377734b.tar.gz
Allow ";;"
Allow for consecutive ";" in rules for recurring events. Bug 6312732 Change-Id: I3bd82b7818cd755eec7129ca6497746a91cb6653
Diffstat (limited to 'src')
-rw-r--r--src/com/android/calendarcommon/EventRecurrence.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/calendarcommon/EventRecurrence.java b/src/com/android/calendarcommon/EventRecurrence.java
index cf2b410..ac03e45 100644
--- a/src/com/android/calendarcommon/EventRecurrence.java
+++ b/src/com/android/calendarcommon/EventRecurrence.java
@@ -598,6 +598,10 @@ public class EventRecurrence {
parts = recur.split(";");
}
for (String part : parts) {
+ // allow empty part (e.g., double semicolon ";;")
+ if (TextUtils.isEmpty(part)) {
+ continue;
+ }
int equalIndex = part.indexOf('=');
if (equalIndex <= 0) {
/* no '=' or no LHS */