Fix for Sparebank1 OTP application

Now in its own branch. Dear $deity, hope this is correct.
master
Tor Houghton 2012-09-22 22:17:57 +02:00
parent b89a72dbeb
commit 46fb1b1db9
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ public class SmsListener extends BroadcastReceiver {
private static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED";
private boolean isExemption(SmsMessage message, String messageBody) {
// ignore OTP messages from Sparebank1 (Norwegian bank)
if (messageBody.startsWith("Sparebank1://otp?")) {
return (true);
}
// Sprint Visual Voicemail
return
message.getOriginatingAddress().length() < 7 &&