summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2020-05-29 12:30:55 +0200
committerArne Schwabe <arne@rfc2549.org>2020-05-29 13:22:27 +0200
commit75c9447b2d455995d242313abf1f6fb6d593c36e (patch)
treeac48baf618aada3d35875905cc064b9ae1938e46
parent00b10ed048cc1f6490e7ca3e0530dd4471ca5a40 (diff)
Remove hidden attribute in restrictions (closes #1200)
According to the discussion in #1194, Google GSuite is not following their own spec that hidden fields should not be shown and set to their implicit default value. Unhide the field, so user can set it to the default value. From the docs (https://developer.android.com/reference/android/content/RestrictionsManager): *hidden* type must have a defaultValue and will not be shown to the administrator. It can be used to pass along data that cannot be modified, such as a version code.
-rw-r--r--main/src/main/res/values/untranslatable.xml2
-rw-r--r--main/src/main/res/xml/app_restrictions.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/main/src/main/res/values/untranslatable.xml b/main/src/main/res/values/untranslatable.xml
index 2823dd0c..39f049a9 100644
--- a/main/src/main/res/values/untranslatable.xml
+++ b/main/src/main/res/values/untranslatable.xml
@@ -71,6 +71,6 @@
<string name="apprest_name">Name</string>
<string name="apprest_vpnlist">List of VPN configurations</string>
<string name="apprest_vpnconf">VPN configuration</string>
- <string name="apprest_ver">Version of the managed configuration schema</string>
+ <string name="apprest_ver">Version of the managed configuration schema (Currently always 1)</string>
</resources>
diff --git a/main/src/main/res/xml/app_restrictions.xml b/main/src/main/res/xml/app_restrictions.xml
index 6387712c..38e1dcf3 100644
--- a/main/src/main/res/xml/app_restrictions.xml
+++ b/main/src/main/res/xml/app_restrictions.xml
@@ -11,7 +11,7 @@
android:key="version"
android:title="@string/apprest_ver"
- android:restrictionType="hidden"
+ android:restrictionType="string"
android:defaultValue="1"
/>