Making add user an async call, disabling Add User button while in progress.

I also added a progress bar to indicate the ongoing user addition, and did some small refactoring.

This also resolves the issue with consecutive button clicks and New User crashes when multiple users are added.

Fixes: 71767048
Fixes: 70850635
Bug: 71634404
Test: mojave testing of user addition

Change-Id: I8a83b7b0fd15044b7fb8ab53e95cfcd43df4a421
4 files changed
tree: a7850515305556b44326bebdb80eac137d3d4cdf
  1. res/
  2. src/
  3. tests/
  4. Android.mk
  5. AndroidManifest.xml