Cleans up user info creation in UserGridRecyclerView.

UserGridRecyclerView shouldn't be creating UserInfo objects, especially not fake
ones that only serve as placeholder for a String. Guest and Add User buttons in
the user switcher don't correspond to real users, and as such, shouldn't be tied
to UserInfo objects.

This can also lead to bugs because consumers of UserRecord assume UserInfo
corresponds to a real user.

Instead we pass null in these cases, and make UserInfo nullable.

Bug: 144993580
Test: manual
Change-Id: Ia0fe0e78fa0150f9075c4c03611a037aea1fcebb
1 file changed
tree: a61ecd3d679dd339de8dd091c3b736b406863c68
  1. res/
  2. src/
  3. tests/
  4. Android.bp
  5. AndroidManifest.xml
  6. PREUPLOAD.cfg