Add an item to "Legal information" screen for WebView license

Similar to how it is done for other legal information items --
if there is an activity that serves android.settings.WEBVIEW_LICENSE
intent, the item is shown with the title set to the activity's title,
otherwise the item is hidden.

Bug: 18729447
Change-Id: Ic5bad40c91e35fa3c8235128628413929ef111d3
This commit is contained in:
Mikhail Naganov
2014-12-15 17:09:50 +00:00
parent 5f17119f46
commit 71ef80eaf4
3 changed files with 16 additions and 0 deletions

View File

@@ -72,6 +72,13 @@
<intent android:action="android.settings.TERMS" />
</PreferenceScreen>
<!-- System WebView License information -->
<PreferenceScreen
android:key="webview_license"
android:title="@string/webview_license_title">
<intent android:action="android.settings.WEBVIEW_LICENSE" />
</PreferenceScreen>
<Preference
android:key="wallpaper_attributions"
android:title="@string/wallpaper_attributions"