diff --git a/src/com/studentersamfundet/app/Event.java b/src/com/studentersamfundet/app/Event.java index 9a45845..2b4562d 100644 --- a/src/com/studentersamfundet/app/Event.java +++ b/src/com/studentersamfundet/app/Event.java @@ -23,12 +23,12 @@ public class Event implements Serializable { String text, String category) { this.id = id; - this.title = title; - this.description = (description == null) ? "" : description; - this.date = (date == null) ? "" : date; - this.location = (location == null) ? "" : location; - this.text = (text == null) ? "" : text; - this.category = (category == null) ? "" : category; + this.title = title.trim(); + this.description = (description == null) ? "" : description.trim(); + this.date = (date == null) ? "" : date.trim(); + this.location = (location == null) ? "" : location.trim(); + this.text = (text == null) ? "" : text.trim(); + this.category = (category == null) ? "" : category.trim(); } public String toString() { diff --git a/src/com/studentersamfundet/app/ui/ProgramListActivity.java b/src/com/studentersamfundet/app/ui/ProgramListActivity.java index 272e8c8..5c32b44 100644 --- a/src/com/studentersamfundet/app/ui/ProgramListActivity.java +++ b/src/com/studentersamfundet/app/ui/ProgramListActivity.java @@ -3,15 +3,11 @@ package com.studentersamfundet.app.ui; import java.io.IOException; import java.text.ParseException; import java.text.SimpleDateFormat; -import java.util.Calendar; import org.w3c.dom.NodeList; import android.app.Dialog; -import android.content.ContentResolver; -import android.content.ContentValues; import android.content.Intent; -import android.net.Uri; import android.os.Bundle; import android.text.Html; import android.view.LayoutInflater; @@ -132,7 +128,6 @@ public class ProgramListActivity extends BaseDnsActivity { row.setOnLongClickListener(new OnLongClickListener() { - @Override public boolean onLongClick(View v) { long startDate = 0; try {