]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/AndroidManifest.xml
Modify the intent filters to make it easier for other browsers to share URLs with...
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
index b4998dd31d0b036e84e6bb5096aeb68cec582653..9feabcd7b05f30ac859255b4c684d4869adf2080 100644 (file)
                 <data android:mimeType="text/*" />
             </intent-filter>
 
+            <!-- Process intents for text strings.  Sometimes URLs are presented this way. -->
+            <intent-filter>
+                <action android:name="android.intent.action.SEND" />
+
+                <category android:name="android.intent.category.DEFAULT" />
+
+                <data android:mimeType="text/plain" />
+            </intent-filter>
+
             <!-- Process intents for MHT archives. -->
             <intent-filter>
                 <action android:name="android.intent.action.VIEW" />
 
                 <data android:host="*" />
 
-                <!-- This pattern matches any file that starts with a `/`, has at least one character, followed by any number of other characters, terminating with `.mht`. -->
-                <data android:pathPattern="/.*\.mht" />
+                <!-- In the path pattern syntax, `.*` is a wildcard.  Hence, this matches any file path that ends in `.mht`.  <https://developer.android.com/guide/topics/manifest/data-element#path>  -->
+                <data android:pathPattern=".*.mht" />
                 <data android:mimeType="*/*" />
             </intent-filter>