Merge pull request #70 from thoughtbox/Sparebank1_OTP
Fix for Sparebank1 OTP application
This commit is contained in:
commit
245afa5020
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ public class SmsListener extends BroadcastReceiver {
|
||||||
private static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED";
|
private static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED";
|
||||||
|
|
||||||
private boolean isExemption(SmsMessage message, String messageBody) {
|
private boolean isExemption(SmsMessage message, String messageBody) {
|
||||||
|
// ignore OTP messages from Sparebank1 (Norwegian bank)
|
||||||
|
if (messageBody.startsWith("Sparebank1://otp?")) {
|
||||||
|
return (true);
|
||||||
|
}
|
||||||
// Sprint Visual Voicemail
|
// Sprint Visual Voicemail
|
||||||
return
|
return
|
||||||
message.getOriginatingAddress().length() < 7 &&
|
message.getOriginatingAddress().length() < 7 &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue