1
0
mirror of https://github.com/etesync/android synced 2024-12-24 23:48:35 +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 @Expose
public String timeZone; public String timeZone;
@Expose
public Boolean supportsVEVENT;
@Expose
public Boolean supportsVTODO;
@Expose @Expose
public boolean selected; public boolean selected;
@ -69,12 +65,6 @@ public class CollectionInfo implements Serializable {
info.readOnly = false; info.readOnly = false;
info.type = service; info.type = service;
if (service.equals(Type.CALENDAR)) {
info.supportsVEVENT = true;
// info.supportsVTODO = true;
} else {
// Carddav
}
return info; return info;
} }
@ -100,8 +90,6 @@ public class CollectionInfo implements Serializable {
info.color = values.getAsInteger(Collections.COLOR); info.color = values.getAsInteger(Collections.COLOR);
info.timeZone = values.getAsString(Collections.TIME_ZONE); 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; info.selected = values.getAsInteger(Collections.SYNC) != 0;
return info; return info;

View File

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

View File

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