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)
Tracking
(firefox52 fixed)
RESOLVED
FIXED
Firefox 52
| Tracking | Status | |
|---|---|---|
| firefox52 | --- | fixed |
People
(Reporter: sebastian, Assigned: maliu)
Details
(Whiteboard: [TPE-1])
Attachments
(2 files)
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.
| Reporter | ||
Updated•9 years ago
|
Whiteboard: [MobileAS] → [TPE-1]
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → max
| Comment hidden (mozreview-request) |
| Reporter | ||
Comment 2•9 years ago
|
||
| mozreview-review | ||
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+
| Assignee | ||
Comment 3•9 years ago
|
||
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)
| Comment hidden (mozreview-request) |
| Reporter | ||
Comment 5•9 years ago
|
||
(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)
| Assignee | ||
Updated•9 years ago
|
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
Comment 7•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•