]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/AndroidManifest.xml
Create Clear Dom Storage and Exit menu items and set launchMode="SingleTask".
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
index bf5b63b059d2e90f9b39941a5599220a449be143..61a4c6f209724dbd96c7f9f8a2b65ece45e6edc4 100644 (file)
         android:theme="@style/AppTheme" >
 
         <!-- android:configChanges="orientation|screenSize" makes the app not reload when the orientation changes. -->
-        <!-- android:windowSoftInputMode="stateAlwaysHidden" hides the keyboard when the app starts. -->
+        <!-- android:launchMode="singleTask" makes the app launch in a new task instead of inside the task of the program that sends it an intent.
+            It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one. -->
         <activity
             android:name=".Webview"
             android:configChanges="orientation|screenSize"
-            android:label="@string/privacy_browser" >
+            android:label="@string/privacy_browser"
+            android:launchMode="singleTask">
+
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />