From 75c9447b2d455995d242313abf1f6fb6d593c36e Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 29 May 2020 12:30:55 +0200 Subject: 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. --- main/src/main/res/values/untranslatable.xml | 2 +- main/src/main/res/xml/app_restrictions.xml | 2 +- 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 @@ Name List of VPN configurations VPN configuration - Version of the managed configuration schema + Version of the managed configuration schema (Currently always 1) 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" /> -- cgit v1.2.3