From a6dbaea2dacaaef7c91f89aae8d5f1ed7580b893 Mon Sep 17 00:00:00 2001 From: Brian Muramatsu Date: Mon, 17 Sep 2012 23:09:35 -0700 Subject: [PATCH] Add optional regulatory info page Bug 7081675 If R.bools.config_show_regulatory_info is true, then show a "Regulatory information" item on the "About phone" page. Show a DialogFragment displaying the regulatory_info drawable if the item is clicked. Add a 1x1 blank regulatory_info drawable for devices that won't show this. Change-Id: I5823d8969de038becf4911dce893dab5dbb23537 --- res/drawable/regulatory_info.png | Bin 0 -> 159 bytes res/layout/regulatory_info.xml | 19 +++++++++ res/values/bools.xml | 3 ++ res/values/strings.xml | 2 + res/xml/device_info_settings.xml | 6 ++- .../android/settings/DeviceInfoSettings.java | 21 ++++++---- .../settings/RegulatoryInfoFragment.java | 39 ++++++++++++++++++ 7 files changed, 82 insertions(+), 8 deletions(-) create mode 100644 res/drawable/regulatory_info.png create mode 100755 res/layout/regulatory_info.xml create mode 100644 src/com/android/settings/RegulatoryInfoFragment.java diff --git a/res/drawable/regulatory_info.png b/res/drawable/regulatory_info.png new file mode 100644 index 0000000000000000000000000000000000000000..65de26c0eb28b05d6d0d6903288e1bbbce409d18 GIT binary patch literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1SBVv2j2s6ii6yp7}lMWc?slj7I;J!Gca%q zgD@k*tT_@uLG}_)Usv`!oI*kxYUgfUzX24IEOCt}an8@pP0cG|a4t$sEJ;mKD9 + + diff --git a/res/values/bools.xml b/res/values/bools.xml index 23bdf0de415..ba402e5982d 100644 --- a/res/values/bools.xml +++ b/res/values/bools.xml @@ -32,4 +32,7 @@ false + + + false diff --git a/res/values/strings.xml b/res/values/strings.xml index 18e2f61a7e1..a1c9cf7939b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2237,6 +2237,8 @@ Legal information Contributors + + Regulatory information Copyright diff --git a/res/xml/device_info_settings.xml b/res/xml/device_info_settings.xml index 324deaaa34c..4fabc9d1094 100644 --- a/res/xml/device_info_settings.xml +++ b/res/xml/device_info_settings.xml @@ -89,6 +89,10 @@ --> + + - +