Closed Bug 1312719 Opened 9 years ago Closed 9 years ago

Sync account avatar still visible after disconnect/logout

Categories

(Firefox for Android Graveyard :: Firefox Accounts, defect, P2)

All
Android
defect

Tracking

(firefox52 fixed)

RESOLVED FIXED
Firefox 52
Tracking Status
firefox52 --- fixed

People

(Reporter: sebastian, Assigned: maliu)

Details

(Whiteboard: [TPE-1])

Attachments

(2 files)

Attached image settings-logout.png
After selecting "disconnect" on the account settings page and returning to settings the avatar from the account is still visible (See screenshot). The next time I open settings the default avatar is shown again.
Whiteboard: [MobileAS] → [TPE-1]
Assignee: nobody → max
Comment on attachment 8807978 [details] Bug 1312719 - Clear icon by setIcon with null drawable before setIcon with resId, https://reviewboard.mozilla.org/r/90898/#review90876 ::: mobile/android/base/java/org/mozilla/gecko/preferences/SyncPreference.java:58 (Diff revision 1) > + // Bug 1312719 - IconDrawable is prior to IconResId, drawable must be set null before setIcon(resId) > + // http://androidxref.com/5.1.1_r6/xref/frameworks/base/core/java/android/preference/Preference.java#102 > + setIcon(null); > setIcon(R.drawable.sync_avatar_default); This is weird - but it works. Do you know why? Doesn't setIcon(int) call setIcon(Drawable)?
Attachment #8807978 - Flags: review?(s.kaspari) → review+
Because in bindView, iconRes will take effect only when iconDrawable is null. Maybe I should update the link to following line? http://androidxref.com/5.1.1_r6/xref/frameworks/base/core/java/android/preference/Preference.java#562
Flags: needinfo?(s.kaspari)
(In reply to Max Liu [:maliu] from comment #3) > Because in bindView, iconRes will take effect only when iconDrawable is null. > > Maybe I should update the link to following line? > http://androidxref.com/5.1.1_r6/xref/frameworks/base/core/java/android/ > preference/Preference.java#562 Yeah, and/or add a comment mentioning that the new icon resource will only be loaded if no icon is set. As this patch is already reviewed: Just add the 'checkin-needed' keyword to the bug and a sheriff will land the patch. :)
Flags: needinfo?(s.kaspari)
Keywords: checkin-needed
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a14ca8dbcc4b Clear icon by setIcon with null drawable before setIcon with resId, r=sebastian
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: