I HATE HATE HATE java == strings

pull/14/head
Tim Su 14 years ago
parent bfd8a80907
commit ba11338ff4

@ -4,7 +4,7 @@
<booleanAttribute key="ch.zork.quicklaunch" value="true"/>
<stringAttribute key="ch.zork.quicklaunch.icon" value="14.gif"/>
<intAttribute key="ch.zork.quicklaunch.index" value="0"/>
<stringAttribute key="ch.zork.quicklaunch.mode" value="run"/>
<stringAttribute key="ch.zork.quicklaunch.mode" value="debug"/>
<intAttribute key="com.android.ide.eclipse.adt.action" value="0"/>
<stringAttribute key="com.android.ide.eclipse.adt.avd" value="evo-8-google"/>
<stringAttribute key="com.android.ide.eclipse.adt.commandline" value="-scale 0.7"/>

@ -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"));
}

Loading…
Cancel
Save