Killed warnings

pull/14/head
Tim Su 15 years ago
parent dbcc393e07
commit 301a1c1de9

@ -147,16 +147,16 @@ public class DateUtilities {
long input = clearTime(new Date(date)); long input = clearTime(new Date(date));
if(today == input) if(today == input)
return context.getString(R.string.today); return context.getString(R.string.today).toLowerCase();
if(today + ONE_DAY == input) if(today + ONE_DAY == input)
return context.getString(R.string.yesterday); return context.getString(R.string.yesterday).toLowerCase();
if(today == input + ONE_DAY) if(today == input + ONE_DAY)
return context.getString(R.string.tomorrow); return context.getString(R.string.tomorrow).toLowerCase();
if(today + DateUtilities.ONE_WEEK <= input && if(today + DateUtilities.ONE_WEEK >= input &&
today - DateUtilities.ONE_WEEK >= input) today - DateUtilities.ONE_WEEK <= input)
return DateUtilities.getWeekday(new Date(date)); return DateUtilities.getWeekday(new Date(date));
return DateUtilities.getDateString(context, new Date(date)); return DateUtilities.getDateString(context, new Date(date));

@ -114,7 +114,7 @@ public class ProducteevControlSet implements TaskEditControlSet {
DialogUtilities.okDialog(context, DialogUtilities.okDialog(context,
context.getString(R.string.DLG_error, e.getMessage()), context.getString(R.string.DLG_error, e.getMessage()),
null); null);
errorReporter.handleError("pdv-create-dashboard", e); errorReporter.handleError("pdv-create-dashboard", e); //$NON-NLS-1$
dashSelector.setSelection(0); dashSelector.setSelection(0);
} }
} }

@ -479,7 +479,7 @@ public class MilkSyncProvider extends SyncProvider<MilkTaskContainer> {
task.setValue(Task.DELETION_DATE, DateUtilities.dateToUnixtime(rtmTask.getDeleted())); task.setValue(Task.DELETION_DATE, DateUtilities.dateToUnixtime(rtmTask.getDeleted()));
if(rtmTask.getDue() != null) { if(rtmTask.getDue() != null) {
task.setValue(Task.DUE_DATE, task.setValue(Task.DUE_DATE,
task.createDueDate(rtmTask.getHasDueTime() ? Task.URGENCY_SPECIFIC_DAY_TIME : Task.createDueDate(rtmTask.getHasDueTime() ? Task.URGENCY_SPECIFIC_DAY_TIME :
Task.URGENCY_SPECIFIC_DAY, DateUtilities.dateToUnixtime(rtmTask.getDue()))); Task.URGENCY_SPECIFIC_DAY, DateUtilities.dateToUnixtime(rtmTask.getDue())));
} else { } else {
task.setValue(Task.DUE_DATE, 0L); task.setValue(Task.DUE_DATE, 0L);

@ -491,7 +491,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
if(dateCache.containsKey(date)) if(dateCache.containsKey(date))
return dateCache.get(date); return dateCache.get(date);
String string = DateUtilities.getRelativeDay(activity, date).toLowerCase(); String string = DateUtilities.getRelativeDay(activity, date);
if(Task.hasDueTime(date)) if(Task.hasDueTime(date))
string = String.format("%s, %s", string, //$NON-NLS-1$ string = String.format("%s, %s", string, //$NON-NLS-1$
DateUtilities.getTimeString(activity, new Date(date))); DateUtilities.getTimeString(activity, new Date(date)));

@ -55,7 +55,6 @@ public class PeopleContainer extends LinearLayout {
/** Adds a tag to the tag field */ /** Adds a tag to the tag field */
public TextView addPerson(String person) { public TextView addPerson(String person) {
System.err.println("ADD PERSON: " + person);
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// check if already exists // check if already exists

Loading…
Cancel
Save