Comment by uncircle
public static final String DISALLOW_FUN
The default value is false. [...] Type: Boolean [...] Constant Value: "no_fun" Source: https://developer.android.com/reference/android/os/UserManag...
---
How the hell did this pass code review? Are booleans strings on Android?
> 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.