Commit 0d09b3da authored by Vincent Bourgmayer's avatar Vincent Bourgmayer 💬 Committed by Romain Hunault

Resolve "Whole day events from outlook not opened correctly"

parent a6ad29f1
......@@ -168,7 +168,7 @@ public class ImportActivity extends Activity {
String dtStart = firstEvent.getProperty(VEvent.DTSTART);
String dtStartParam = firstEvent.getPropertyParameters(VEvent.DTSTART);
if (!TextUtils.isEmpty(dtStart)) {
if (!TextUtils.isEmpty(dtStart)) {
calIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME,
getLocalTimeFromString(dtStart, dtStartParam));
}
......@@ -180,6 +180,15 @@ public class ImportActivity extends Activity {
getLocalTimeFromString(dtEnd, dtEndParam));
}
//Check if some special property which say it is a "All-Day" event.
String microsoft_all_day_event = firstEvent.getProperty("X-MICROSOFT-CDO-ALLDAYEVENT");
if(!TextUtils.isEmpty(microsoft_all_day_event) && microsoft_all_day_event.equals("TRUE")){
calIntent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY, true);
}
calIntent.putExtra(EditEventActivity.EXTRA_READ_ONLY, true);
try {
......
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 to comment