From ba11338ff40134c2a4a1619febe1a6bd2aa3481b Mon Sep 17 00:00:00 2001 From: Tim Su Date: Fri, 16 Jul 2010 02:59:32 -0700 Subject: [PATCH] I HATE HATE HATE java == strings --- astrid/astrid.launch | 2 +- .../plugin-src/com/todoroo/astrid/rmilk/api/data/RtmList.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/astrid/astrid.launch b/astrid/astrid.launch index 6b1f50845..72aa24a68 100644 --- a/astrid/astrid.launch +++ b/astrid/astrid.launch @@ -4,7 +4,7 @@ - + diff --git a/astrid/plugin-src/com/todoroo/astrid/rmilk/api/data/RtmList.java b/astrid/plugin-src/com/todoroo/astrid/rmilk/api/data/RtmList.java index f208efd98..ee128d525 100644 --- a/astrid/plugin-src/com/todoroo/astrid/rmilk/api/data/RtmList.java +++ b/astrid/plugin-src/com/todoroo/astrid/rmilk/api/data/RtmList.java @@ -41,8 +41,8 @@ public class RtmList extends RtmData { public RtmList(Element elt) { id = elt.getAttribute("id"); name = elt.getAttribute("name"); - smart = elt.getAttribute("smart") == "1"; - archived = elt.getAttribute("archived") == "1"; + smart = elt.getAttribute("smart").equals("1"); + archived = elt.getAttribute("archived").equals("1"); position = Integer.parseInt(elt.getAttribute("position")); }