Skip to content

Commit f8f4e7b

Browse files
committed
Make Import Photos more permissive
1 parent e69d23d commit f8f4e7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939

4040
<category android:name="android.intent.category.DEFAULT"/>
4141

42-
<data android:mimeType="image/jpeg"/>
42+
<data android:mimeType="image/*"/>
4343
</intent-filter>
4444
<intent-filter>
4545
<action android:name="android.intent.action.SEND_MULTIPLE"/>
4646

4747
<category android:name="android.intent.category.DEFAULT"/>
4848

49-
<data android:mimeType="image/jpeg"/>
49+
<data android:mimeType="image/*"/>
5050
</intent-filter>
5151
</activity>
5252

app/src/main/kotlin/com/darkrockstudios/app/securecamera/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ class MainActivity : ComponentActivity() {
120120
val intent = getIntent()
121121

122122
return if (Intent.ACTION_SEND == intent.action && intent.type != null) {
123-
if (intent.type?.startsWith("image/jpeg") == true) {
123+
if (intent.type?.startsWith("image/") == true) {
124124
handleSingleImage(intent)
125125
} else {
126126
emptyList()
127127
}
128128
} else if (Intent.ACTION_SEND_MULTIPLE == intent.action && intent.type != null) {
129-
if (intent.type?.startsWith("image/jpeg") == true) {
129+
if (intent.type?.startsWith("image/") == true) {
130130
handleMultipleImages(intent)
131131
} else {
132132
emptyList()

0 commit comments

Comments
 (0)