Add Open Source licenses in about menu.
- Add command line switch for privacy policy url and eula url.
- Consolidate all browser switches inside BrowserSwitches class.
Change-Id: If0257c0e34e030a2619cb5957ad8c852c5a49633
diff --git a/res/xml/about_preferences.xml b/res/xml/about_preferences.xml
index 14bab64..2b156fa 100644
--- a/res/xml/about_preferences.xml
+++ b/res/xml/about_preferences.xml
@@ -56,4 +56,10 @@
<Preference
android:key="feedback"
android:title="@string/feedback" />
+
+ <Preference
+ android:key="legal"
+ android:title="@string/swe_legal"
+ android:summary="@string/swe_pref_legal_info_summary"/>
+
</PreferenceScreen>
diff --git a/res/xml/legal_preferences.xml b/res/xml/legal_preferences.xml
new file mode 100644
index 0000000..8727e3a
--- /dev/null
+++ b/res/xml/legal_preferences.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (c) 2015, The Linux Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of The Linux Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+-->
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:key="legal"
+ android:title="@string/swe_legal">
+ <Preference
+ android:key="legal_credits"
+ android:title="@string/swe_open_source_licenses"/>
+
+ <Preference
+ android:key="legal_eula"
+ android:title="@string/swe_eula" />
+
+ <Preference
+ android:key="legal_privacy_policy"
+ android:title="@string/swe_privacy_policy" />
+</PreferenceScreen>
\ No newline at end of file