diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-02 05:51:32 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-02 05:51:32 +0000 |
commit | f86f06ffe513e250df51dbdc7045966b220a357f (patch) | |
tree | a475453733f59484cc6b0eaa531dd0f1f2486f9d /app/src/main/AndroidManifest.xml | |
parent | a2f301f75e34a3a28cad081d445dfd021fce45c1 (diff) | |
download | infinity-for-reddit-f86f06ffe513e250df51dbdc7045966b220a357f.tar infinity-for-reddit-f86f06ffe513e250df51dbdc7045966b220a357f.tar.gz infinity-for-reddit-f86f06ffe513e250df51dbdc7045966b220a357f.tar.bz2 infinity-for-reddit-f86f06ffe513e250df51dbdc7045966b220a357f.tar.lz infinity-for-reddit-f86f06ffe513e250df51dbdc7045966b220a357f.tar.xz infinity-for-reddit-f86f06ffe513e250df51dbdc7045966b220a357f.tar.zst infinity-for-reddit-f86f06ffe513e250df51dbdc7045966b220a357f.zip |
Create LinkResolverActivity to resolve the reddit links instead of resolving them in different activities. Deep link error handling is still broken.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/AndroidManifest.xml | 49 |
1 files changed, 17 insertions, 32 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8a75d069..362a128d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,6 +19,18 @@ android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true"> + <activity android:name=".LinkResolverActivity"> + <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:host="www.reddit.com" + android:scheme="https" /> + </intent-filter> + </activity> <activity android:name=".SearchActivity" android:label="@string/search_activity_label" @@ -73,6 +85,7 @@ android:theme="@style/AppTheme.NoActionBarWithTransparentStatusBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> @@ -91,42 +104,15 @@ <activity android:name=".ViewPostDetailActivity" android:parentActivityName=".MainActivity" - 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> + android:theme="@style/AppTheme.NoActionBar" /> <activity android:name=".ViewSubredditDetailActivity" android:parentActivityName=".MainActivity" - 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> + android:theme="@style/AppTheme.NoActionBarWithTranslucentWindow" /> <activity android:name=".ViewUserDetailActivity" android:parentActivityName=".MainActivity" - 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> + android:theme="@style/AppTheme.NoActionBarWithTranslucentWindow" /> <provider android:name="androidx.core.content.FileProvider" @@ -135,8 +121,7 @@ android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" - android:resource="@xml/file_paths"> - </meta-data> + android:resource="@xml/file_paths" /> </provider> </application> |