Skip to content

Commit 75c9447

Browse files
committed
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.
1 parent 00b10ed commit 75c9447

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main/src/main/res/values/untranslatable.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171
<string name="apprest_name">Name</string>
7272
<string name="apprest_vpnlist">List of VPN configurations</string>
7373
<string name="apprest_vpnconf">VPN configuration</string>
74-
<string name="apprest_ver">Version of the managed configuration schema</string>
74+
<string name="apprest_ver">Version of the managed configuration schema (Currently always 1)</string>
7575

7676
</resources>

main/src/main/res/xml/app_restrictions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
android:key="version"
1313
android:title="@string/apprest_ver"
14-
android:restrictionType="hidden"
14+
android:restrictionType="string"
1515
android:defaultValue="1"
1616
/>
1717

0 commit comments

Comments
 (0)