File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
kotlin/com/darkrockstudios/app/securecamera Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments