fix handling of sms:, smsto:, mms:, mmsto: URIs

1) add VIEW action and BROWSABLE category to SmsSendtoActivity intent filter
2) created class Rfc5724Uri for processing RFC5724 SMS URIs
3) added a set of tests for new Rfc5724Uri class
4) updated SmsSendtoActivity to use Rfc5742Uri for processing VIEW intents

Fixes #2578
Closes #3030

// FREEBIE
This commit is contained in:
Rhodey Orbits
2015-04-21 13:40:21 -07:00
committed by Moxie Marlinspike
parent 3fe676a3dd
commit 8f002bd68d
4 changed files with 211 additions and 2 deletions

View File

@@ -223,7 +223,9 @@
<activity android:name=".SmsSendtoActivity">
<intent-filter>
<action android:name="android.intent.action.SENDTO" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
<data android:scheme="mms" />