Skip to content

Commit

Permalink
fixed intent filters to allow default handling of subreddit URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
blazeroni committed Feb 13, 2012
1 parent fc968da commit 9769b54
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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="/" />
Expand All @@ -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">
Expand Down

0 comments on commit 9769b54

Please sign in to comment.