Bug 1062112: Part 1f: Stop comparing strings with ==. r=nalexander

This commit is contained in:
Chris Kitching 2014-09-04 18:35:28 -07:00
parent fc9e87ebfa
commit 47ae70ea5d

View File

@ -783,9 +783,9 @@ public class GeckoSmsManager
if (mDelivery == null) {
restrictions.add("type IN ('" + kSmsTypeSentbox + "', '" + kSmsTypeInbox + "')");
} else if (mDelivery == "sent") {
} else if (mDelivery.equals("sent")) {
restrictions.add("type = " + kSmsTypeSentbox);
} else if (mDelivery == "received") {
} else if (mDelivery.equals("received")) {
restrictions.add("type = " + kSmsTypeInbox);
} else {
throw new UnexpectedDeliveryStateException();