diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-01 05:23:47 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-01 05:23:47 +0000 |
commit | a2f301f75e34a3a28cad081d445dfd021fce45c1 (patch) | |
tree | b6b0d2338eb0f15b98393f522d631f8b8d784780 /app/src/main/AndroidManifest.xml | |
parent | 47515b87d0490f75dfb0705330f791035024533a (diff) | |
download | infinity-for-reddit-a2f301f75e34a3a28cad081d445dfd021fce45c1.tar infinity-for-reddit-a2f301f75e34a3a28cad081d445dfd021fce45c1.tar.gz infinity-for-reddit-a2f301f75e34a3a28cad081d445dfd021fce45c1.tar.bz2 infinity-for-reddit-a2f301f75e34a3a28cad081d445dfd021fce45c1.tar.lz infinity-for-reddit-a2f301f75e34a3a28cad081d445dfd021fce45c1.tar.xz infinity-for-reddit-a2f301f75e34a3a28cad081d445dfd021fce45c1.tar.zst infinity-for-reddit-a2f301f75e34a3a28cad081d445dfd021fce45c1.zip |
Implement Deep Link to open reddit links directly in this app.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/AndroidManifest.xml | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 423600da..8a75d069 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -73,7 +73,6 @@ android:theme="@style/AppTheme.NoActionBarWithTransparentStatusBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> - <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> @@ -92,15 +91,42 @@ <activity android:name=".ViewPostDetailActivity" android:parentActivityName=".MainActivity" - android:theme="@style/AppTheme.NoActionBar" /> + android:theme="@style/AppTheme.NoActionBar"> + <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="https" + android:host="www.reddit.com" + android:pathPattern="/r/..*/comments/..*"/> + </intent-filter> + </activity> <activity android:name=".ViewSubredditDetailActivity" android:parentActivityName=".MainActivity" - android:theme="@style/AppTheme.NoActionBarWithTranslucentWindow" /> + android:theme="@style/AppTheme.NoActionBarWithTranslucentWindow"> + <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="https" + android:host="www.reddit.com" + android:pathPattern="/r/..*"/> + </intent-filter> + </activity> <activity android:name=".ViewUserDetailActivity" android:parentActivityName=".MainActivity" - android:theme="@style/AppTheme.NoActionBarWithTranslucentWindow" /> + android:theme="@style/AppTheme.NoActionBarWithTranslucentWindow"> + <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="https" + android:host="www.reddit.com" + android:pathPattern="/user/..*"/> + </intent-filter> + </activity> <provider android:name="androidx.core.content.FileProvider" |