6 ms·
> How the hell did this pass code review? Are booleans strings on Android? You are misreading the documentation, it's a key/value API. `DISALLOW_FUN` is the s
by objclxt 1y ago
> How the hell did this pass code review? Are booleans strings on Android?
You are misreading the documentation, it's a key/value API.
`DISALLOW_FUN` is the string key you pass to `setUserRestriction`, which takes a boolean value.
- uncircle 1y agoThat makes more sense. Thanks.
- izacus 1y agoAlso this is an enterprise policy constant, so it gets sent (and configured) as string/string dictionary via REST API from MDM backend. That's mostly because the constants can be of mixed types (e.g. "MAX_PASSWORD_CHARS" : "1", "DISALLOW_NETWORK_SWITCHING: "true" - example, constants not actual).