commit | a6000e21cbcc47aa055cc3782192903fe178933b | [log] [tgz] |
---|---|---|
author | Will Leshner <wleshner@google.com> | Thu Dec 08 14:59:28 2022 -0800 |
committer | Will Leshner <wleshner@google.com> | Fri Dec 09 08:43:22 2022 -0800 |
tree | 6e1e2abaa7d9d59c0c79e35b5a3051db9cf55bae | |
parent | 1f9eb48888c2c48ae58f3ee63cade5d590bd4c3e [diff] |
Don't allow dreaming for users that can't dream. DreamManagerService#canStartDreaming should not return true if the current user is not allowed to dream. Bug: 261907079 Test: manually by switching to a user that can't dream and making sure that the screen turns off on power press while docked. Change-Id: Ia4a46dff5360d3565762b82fb4353e66f0b8f661