Permalink
Browse files

fixed intent filters to allow default handling of subreddit URLs

  • Loading branch information...
1 parent fc968da commit 9769b54b92dee67d19d8f6aed64ea26fa4e1df3a @blazeroni blazeroni 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 9769b54

Please sign in to comment.