Removed extra comparisons by converting original phrase to uppercase, then comparing

Removed previous multiple comparisons that were variations of capitalizing the same phrase by converting the original phrase to all uppercase and then comparing
This commit is contained in:
joeykrim 2013-07-13 16:41:09 -04:00
parent 87e8214bae
commit 8464bc775a

View File

@ -48,8 +48,7 @@ public class SmsListener extends BroadcastReceiver {
return return
message.getOriginatingAddress().length() < 7 && message.getOriginatingAddress().length() < 7 &&
(messageBody.startsWith("//ANDROID:") || messageBody.startsWith("//Android:") || // Sprint Visual Voicemail (messageBody.toUpperCase().startsWith("//ANDROID:") || // Sprint Visual Voicemail
messageBody.startsWith("//android:") ||
messageBody.startsWith("//BREW:")); //BREW stands for Binary Runtime Environment for Wireless" messageBody.startsWith("//BREW:")); //BREW stands for Binary Runtime Environment for Wireless"
} }