commit | 60a296d2902bc4ee1a4c6fb4b76391c0798b8591 | [log] [tgz] |
---|---|---|
author | Adam Bookatz <bookatz@google.com> | Wed Mar 31 18:19:58 2021 -0700 |
committer | Adam Bookatz <bookatz@google.com> | Wed Mar 31 18:41:57 2021 -0700 |
tree | 034e6eeee2223d4f5ce1c47d95e922c88d17f670 | |
parent | 1b82a330482b257aaf20ec7c5d40895fd27342d9 [diff] |
Failed guest creation doesn't crash Settings In the new multiuser settings, there's no logic to handle what happens when a guest user creation fails, and so Settings crashed with a NullPointerException. In the fix, we catch this case to avoid crashing, and display a toast to the user so that they understand the operation was not successful. Bug: 175042193 Test: manually failed to create user and observe toast and no crash Change-Id: I7dfcaa1eb6d4b792946e18d1632fd2c75e93c168