<application
android:label="@string/privacy_browser"
android:icon="@mipmap/privacy_browser"
+ android:roundIcon="@mipmap/privacy_browser_round"
android:allowBackup="false"
android:fullBackupContent="false"
android:supportsRtl="true" >
android:name="android.webkit.WebView.MetricsOptOut"
android:value="true" />
+ <!-- Explicitly disable "Safe Browsing". -->
+ <meta-data
+ android:name="android.webkit.WebView.EnableSafeBrowsing"
+ android:value="false" />
+
<!-- The theme has to be defined here or an ugly title bar is displayed when the app launches.
`android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
`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.
android:screenOrientation="fullUser"
android:persistableMode="persistNever"
tools:ignore="UnusedAttribute" />
+
+ <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
+ `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
+ `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
+ <activity
+ android:name=".activities.ViewSourceActivity"
+ android:label="@string/view_source"
+ android:parentActivityName=".activities.MainWebViewActivity"
+ android:configChanges="orientation|screenSize"
+ android:screenOrientation="fullUser"
+ android:persistableMode="persistNever"
+ tools:ignore="UnusedAttribute" />
</application>
</manifest>