Small cleanup.

This commit is contained in:
Robert Kolner committed 2011-10-19 19:46:01 +02:00
1 parent 5f02e8895c
commit 4e10338d1f
2 files changed
+6 -11

No files matched your search

+6 -6
View File
@@ -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() {
@@ -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 {