kopia lustrzana https://github.com/ryukoposting/Signal-Android
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 comparingfork-5.53.8
rodzic
87e8214bae
commit
8464bc775a
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue