Experiment

This commit is contained in:
M66B 2021-05-31 17:41:09 +02:00
parent 01622bff89
commit 3b9e74b79c
1 changed files with 9 additions and 0 deletions

View File

@ -185,6 +185,7 @@ import biweekly.parameter.ParticipationStatus;
import biweekly.property.Attendee;
import biweekly.property.Method;
import biweekly.property.Organizer;
import biweekly.property.RawProperty;
import biweekly.util.ICalDate;
import static android.app.Activity.RESULT_OK;
@ -2734,6 +2735,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
String description = (event.getDescription() == null ? null : event.getDescription().getValue());
String location = (event.getLocation() == null ? null : event.getLocation().getValue());
if (false) {
RawProperty xAltDesc = event.getExperimentalProperty("X-ALT-DESC");
if (xAltDesc != null &&
xAltDesc.getValue() != null &&
"text/html".equals(xAltDesc.getParameter("FMTTYPE")))
description = xAltDesc.getValue();
}
ICalDate start = (event.getDateStart() == null ? null : event.getDateStart().getValue());
ICalDate end = (event.getDateEnd() == null ? null : event.getDateEnd().getValue());