summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2019-06-14 10:54:35 -0400
committerFabian Kozynski <kozynski@google.com>2019-06-14 11:08:07 -0400
commit4e4b072c3602934154e44144783d7f3b4875f633 (patch)
tree91a64d70ec254feb4d6332f00f94da56ecb9ac1a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8a03eb7842cea71e2713b8d208e44de550d210db (diff)
Hide MultiUserSwitch when guestEnabled && no_add_users
If the device is guestEnabled but the user cannot add new users (either by system or by device policy), do not show MultiUserSwitch Even if the user set the setting USER_SWITCHER_ENABLED to true by accidentally going to "Multiple Users", it doesn't make sense to show it in devices with a single user that cannot add users. We still set the setting to true by default (even if it may be disabled by policy), as the setting should reflect what the user sees in that screen. Test: manual * Set the user restrictions for user 0 as per in BR in b/134569467. Including policy as well as modifying /data/system/users/0.xml * Go to Multiple Users, see that it matches screenshot with setting enabled * See that the issue is that guests are enabled, even though the user cannot add guests and that's why MultiUserSwitch is showing. Fixes: 134569467 Change-Id: If7c596769faa577d6d9ba8943722fb6e6734f7c2
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions