aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-08-01 05:23:47 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-08-01 05:23:47 +0000
commita2f301f75e34a3a28cad081d445dfd021fce45c1 (patch)
treeb6b0d2338eb0f15b98393f522d631f8b8d784780 /app/src/main/AndroidManifest.xml
parent47515b87d0490f75dfb0705330f791035024533a (diff)
downloadinfinity-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 'app/src/main/AndroidManifest.xml')
-rw-r--r--app/src/main/AndroidManifest.xml34
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"