Skip to content

Commit

Permalink
Restrict intent filter to file types compatible with plain text only
Browse files Browse the repository at this point in the history
Fixes #17
  • Loading branch information
soupslurpr committed Jun 5, 2023
1 parent e5f9395 commit efba2e4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,19 @@
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="content"/>
<data android:mimeType="*/*"/>
<data android:mimeType="text/*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="content"/>
<data android:mimeType="application/xml"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="content"/>
<data android:mimeType="application/json"/>
</intent-filter>
</activity>
</application>
Expand Down

0 comments on commit efba2e4

Please sign in to comment.