Use UserHandle#hashCode() as default UserIconInfo#userSerial
Assiging 0 as default useSerial would cause different UserHandle overriding each other in cache, thus we should use some unique serial number.
It's observed that UserHandle#mUserHandle (returned by hashCode()) is always matching UserIconInfo#userSerial. So we should use UserHandle#hashCode() as the default serial number.
Bug: b/327705448
Bug: 340362067
Test: manual
Flag: NONE
Change-Id: I12696cd0ba8d46a115b7e086c6996ff7023179a2
1 file changed