From 22f8c26da1ff506c797e0dec5d4b22fcb71d3a22 Mon Sep 17 00:00:00 2001 From: Jesse Young Date: Fri, 25 Nov 2011 19:36:04 -0800 Subject: [PATCH] add settings screen for ignored phone numbers; allow user to specify if they want to ignore non-numeric senders and shortcodes --- AndroidManifest.xml | 7 +- ..._phone_number.xml => add_phone_number.xml} | 4 +- res/layout/ignored_phone_numbers.xml | 38 +++++ ...test_phone_number.xml => phone_number.xml} | 0 res/layout/test_phone_numbers.xml | 8 +- res/values/strings.xml | 5 +- res/xml/prefs.xml | 13 +- src/org/envaya/sms/App.java | 150 +++++++++++++----- src/org/envaya/sms/CheckMmsInboxService.java | 2 +- src/org/envaya/sms/IncomingMessage.java | 32 +--- src/org/envaya/sms/Outbox.java | 6 +- .../envaya/sms/ui/IgnoredPhoneNumbers.java | 131 +++++++++++++++ src/org/envaya/sms/ui/TestPhoneNumbers.java | 6 +- 13 files changed, 317 insertions(+), 85 deletions(-) rename res/layout/{add_test_phone_number.xml => add_phone_number.xml} (62%) create mode 100755 res/layout/ignored_phone_numbers.xml rename res/layout/{test_phone_number.xml => phone_number.xml} (100%) create mode 100755 src/org/envaya/sms/ui/IgnoredPhoneNumbers.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 8a3a63b..a9d6af6 100755 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="16" + android:versionName="2.0.3"> @@ -35,6 +35,9 @@ + + + diff --git a/res/layout/add_test_phone_number.xml b/res/layout/add_phone_number.xml similarity index 62% rename from res/layout/add_test_phone_number.xml rename to res/layout/add_phone_number.xml index 8c2c8f8..7451d0a 100755 --- a/res/layout/add_test_phone_number.xml +++ b/res/layout/add_phone_number.xml @@ -1,6 +1,6 @@ - diff --git a/res/layout/ignored_phone_numbers.xml b/res/layout/ignored_phone_numbers.xml new file mode 100755 index 0000000..3c4611d --- /dev/null +++ b/res/layout/ignored_phone_numbers.xml @@ -0,0 +1,38 @@ + + + + + + + + +