Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed intent filters to allow default handling of subreddit URLs

  • Loading branch information...
commit 9769b54b92dee67d19d8f6aed64ea26fa4e1df3a 1 parent fc968da
@blazeroni blazeroni authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 AndroidManifest.xml
View
9 AndroidManifest.xml
@@ -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">
Please sign in to comment.
Something went wrong with that request. Please try again.