diff options
author | Adam Bookatz <bookatz@google.com> | 2021-03-31 18:26:19 -0700 |
---|---|---|
committer | Adam Bookatz <bookatz@google.com> | 2021-03-31 18:26:19 -0700 |
commit | bec782c911c82b6937c2645fedc5229a96418e0a (patch) | |
tree | df9d3f92a0699bf95f9fbca5c51fbb6386d71e98 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 249a37c5c949d6e1973e3fbe007ed2a62959c089 (diff) |
String for: 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.
In this cl we create the string for the toast.
Bug: 175042193
Test: manually failed to create user and observe toast and no crash
Change-Id: I5d5e0a26d52ea81db273c2b74e259ad6783b5c97
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions