OSDN Git Service

Set user icon to default when updating profile without photo
authorSudheer Shanka <sudheersai@google.com>
Thu, 14 Apr 2016 23:50:14 +0000 (16:50 -0700)
committerSudheer Shanka <sudheersai@google.com>
Thu, 14 Apr 2016 23:56:15 +0000 (16:56 -0700)
commit71caf698b48392ad824842dee1d3a0b598caf95d
tree356b29bf0a897e07ad258253ca5f5b85c568a963
parent6a41da8e9a6fb016cd93f991d65cf8334fb1d3a2
Set user icon to default when updating profile without photo

If the user photo was deleted in the Myself contact, the change
was not reflected neither in Settings/Users nor in expanded
status bar. This was because the ProfileUpdateReceiver did not
handle the case where the updated image was null (deleted).
Fixed by assigning default user icon in UserManager if no photo
found in the profile update.

AOSP change: https://android-review.googlesource.com/#/c/153137

Bug: 28031914
Change-Id: I2f452f78dcf777414f50b133b1a9cee334bbd9a8
src/com/android/settings/Utils.java
src/com/android/settings/users/UserSettings.java