Permalink
Browse files

Merge pull request #243 from blazeroni/master

Fixed subreddit intent filters
  • Loading branch information...
2 parents fc968da + 9769b54 commit aa2a0d60134f136da4de7622682675e25f9ca7ca @talklittle committed Feb 13, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 AndroidManifest.xml
View
@@ -44,6 +44,7 @@
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:host="www.reddit.com" android:pathPattern="/r/.*/" />
<data android:scheme="http" android:host="redd.it" android:pathPattern="/" />
@@ -57,8 +58,14 @@
<data android:scheme="http" android:host="www.reddit.com" android:pathPattern="/r/.*/comments/.*" />
<data android:scheme="http" android:host="www.reddit.com" android:pathPrefix="/comments/" />
<data android:scheme="http" android:host="www.reddit.com" android:pathPrefix="/tb/" />
- <data android:scheme="http" android:host="redd.it" android:pathPattern="/..*" />
</intent-filter>
+ <!-- Separate filter because when added to above filter, the host is ignored -->
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="http" android:host="redd.it" android:pathPattern="/..*" />
+ </intent-filter>
</activity>
<activity android:name=".reddits.PickSubredditActivity"></activity>
<activity android:name=".submit.SubmitLinkActivity">

0 comments on commit aa2a0d6

Please sign in to comment.