]> 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 dedd5b1a17f8d14bbe6166ce4ccd6dd2c11669f7..9feabcd7b05f30ac859255b4c684d4869adf2080 100644 (file)
@@ -99,7 +99,7 @@
         <activity
             android:name=".activities.MainWebViewActivity"
             android:label="@string/short_name"
-            android:theme="@style/PrivacyBrowserLight"
+            android:theme="@style/PrivacyBrowser"
             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
             android:launchMode="singleTask"
             android:screenOrientation="fullUser"
                 <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>