aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-08-28 08:41:36 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-08-28 08:41:36 +0000
commitcc0d78aeddb90346c136fc4eafe03d80b95e93fa (patch)
treeb871b8fb573886c876bc0197a3c46e2bcfd72553 /app/src/main/AndroidManifest.xml
parent30d2abe9c691bf1603495bd7ae1abebbc447e0a8 (diff)
downloadinfinity-for-reddit-cc0d78aeddb90346c136fc4eafe03d80b95e93fa.tar
infinity-for-reddit-cc0d78aeddb90346c136fc4eafe03d80b95e93fa.tar.gz
infinity-for-reddit-cc0d78aeddb90346c136fc4eafe03d80b95e93fa.tar.bz2
infinity-for-reddit-cc0d78aeddb90346c136fc4eafe03d80b95e93fa.tar.lz
infinity-for-reddit-cc0d78aeddb90346c136fc4eafe03d80b95e93fa.tar.xz
infinity-for-reddit-cc0d78aeddb90346c136fc4eafe03d80b95e93fa.tar.zst
infinity-for-reddit-cc0d78aeddb90346c136fc4eafe03d80b95e93fa.zip
Receiving images, videos and texts to directly submitting different kinds of posts. Fixed video was not shown after selected from picker in PostVideoActivity. Handle some cases that the posts cannot be submitted. Minor bugs fixed.
Diffstat (limited to 'app/src/main/AndroidManifest.xml')
-rw-r--r--app/src/main/AndroidManifest.xml47
1 files changed, 32 insertions, 15 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 46d43af7..c3de6dc2 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -2,15 +2,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ml.docilealligator.infinityforreddit">
- <uses-permission android:name="android.permission.INTERNET" />
-
- <uses-permission-sdk-23 android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
-
- <uses-permission
- android:name="android.permission.WRITE_EXTERNAL_STORAGE"
- android:maxSdkVersion="22" />
- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
-
<application
android:name=".Infinity"
android:allowBackup="true"
@@ -20,6 +11,23 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
+ <activity android:name=".ShareDataResolverActivity">
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="image/*" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="video/*" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="text/plain" />
+ </intent-filter>
+ </activity>
<activity
android:name=".SettingsActivity"
android:label="@string/search_activity_label"
@@ -47,15 +55,11 @@
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="adjustResize" />
- <service
- android:name=".SubmitPostService"
- android:enabled="true"
- android:exported="false" />
-
<activity
android:name=".FilteredThingActivity"
android:parentActivityName=".MainActivity"
android:theme="@style/AppTheme.NoActionBar" />
+
<activity
android:name=".SearchSubredditsResultActivity"
android:label="@string/search_subreddits_activity_label"
@@ -172,7 +176,6 @@
android:name=".ViewUserDetailActivity"
android:parentActivityName=".MainActivity"
android:theme="@style/AppTheme.NoActionBarWithTranslucentWindow" />
-
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
@@ -182,6 +185,20 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
+
+ <service
+ android:name=".SubmitPostService"
+ android:enabled="true"
+ android:exported="false" />
</application>
+ <uses-permission
+ android:name="android.permission.WRITE_EXTERNAL_STORAGE"
+ android:maxSdkVersion="22" />
+
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
+ <uses-permission android:name="android.permission.INTERNET" />
+
+ <uses-permission-sdk-23 android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+
</manifest> \ No newline at end of file