1
0
mirror of https://github.com/etesync/android synced 2024-12-24 07:28:09 +00:00

CollectionInfo: remove the obsolete support VEVENT and support VTODO.

This commit is contained in:
Tom Hacohen 2017-04-05 19:10:01 +01:00
parent 0a4d4a9d9e
commit c2e7914290
3 changed files with 0 additions and 16 deletions

View File

@ -50,10 +50,6 @@ public class CollectionInfo implements Serializable {
@Expose
public String timeZone;
@Expose
public Boolean supportsVEVENT;
@Expose
public Boolean supportsVTODO;
@Expose
public boolean selected;
@ -69,12 +65,6 @@ public class CollectionInfo implements Serializable {
info.readOnly = false;
info.type = service;
if (service.equals(Type.CALENDAR)) {
info.supportsVEVENT = true;
// info.supportsVTODO = true;
} else {
// Carddav
}
return info;
}
@ -100,8 +90,6 @@ public class CollectionInfo implements Serializable {
info.color = values.getAsInteger(Collections.COLOR);
info.timeZone = values.getAsString(Collections.TIME_ZONE);
info.supportsVEVENT = getAsBooleanOrNull(values, Collections.SUPPORTS_VEVENT);
info.supportsVTODO = getAsBooleanOrNull(values, Collections.SUPPORTS_VTODO);
info.selected = values.getAsInteger(Collections.SYNC) != 0;
return info;

View File

@ -57,8 +57,6 @@ public class ServiceDB {
DESCRIPTION = "description",
COLOR = "color",
TIME_ZONE = "timezone",
SUPPORTS_VEVENT = "supportsVEVENT",
SUPPORTS_VTODO = "supportsVTODO",
SYNC = "sync";
}

View File

@ -118,8 +118,6 @@ public class CreateCollectionActivity extends AppCompatActivity {
if (info.type == CollectionInfo.Type.CALENDAR) {
View view = findViewById(R.id.color);
info.color = ((ColorDrawable) view.getBackground()).getColor();
info.supportsVEVENT = true;
}
info.selected = true;