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
fork-5.53.8
joeykrim 2013-07-13 16:41:09 -04:00
rodzic 87e8214bae
commit 8464bc775a
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

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