Skip to content

Issue/deprecate avatar type#8468

Merged
malinajirka merged 22 commits intodevelopfrom
issue/deprecate-avatar-type
Oct 24, 2018
Merged

Issue/deprecate avatar type#8468
malinajirka merged 22 commits intodevelopfrom
issue/deprecate-avatar-type

Conversation

@theck13
Copy link
Copy Markdown
Contributor

@theck13 theck13 commented Oct 23, 2018

Fix

Deprecate the AVATAR image type and update instances of it with either AVATAR_WITH_BACKGROUND or AVATAR_WITHOUT_BACKGROUND based on the usage. The AVATAR image type uses an old resource, ic_placeholder_gravatar_grey_lighten_20_100dp, as the error and placeholder image. The AVATAR_WITH_BACKGROUND image type uses bg_oval_grey_user_32dp, which is the avatar design for the Revisions. The AVATAR_WITHOUT_BACKGROUND image type uses ic_user_circle_grey_24dp, which is the avatar design for the Me tab and Login epilogue.

Instances of AVATAR in the Reader were left as is since it uses a square image for blavatars (e.g. ic_placeholder_blavatar_grey_lighten_20_40dp), which is similar to the old ic_placeholder_gravatar_grey_lighten_20_100dp resource.

Test

  1. Use slow internet connection.
  2. Go to screens with avatar images.
  3. Notice placeholder avatar image while loading.
  4. Notice user avatar image once loaded.
  5. Notice error avatar image if failed.

@theck13 theck13 added this to the 11.2 milestone Oct 23, 2018
@theck13 theck13 requested a review from malinajirka October 23, 2018 17:38
@malinajirka malinajirka self-assigned this Oct 24, 2018
@malinajirka
Copy link
Copy Markdown
Contributor

Thank you @theck13 !

LGTM

@malinajirka malinajirka merged commit 8f899ca into develop Oct 24, 2018
@malinajirka malinajirka deleted the issue/deprecate-avatar-type branch October 24, 2018 07:49
ParaskP7 added a commit that referenced this pull request Oct 7, 2022
Warning Message: "'AVATAR' is deprecated. Use AVATAR_WITH_BACKGROUND or
AVATAR_WITHOUT_BACKGROUND instead."

It is still unclear whether it is safe to replace 'AVATAR' with
'AVATAR_WITH_BACKGROUND', see it being suggested by the 'replaceWith'
deprecated annotation field. As such, there deprecated warnings are
suppressed, that is, instead of being resolved, since a resolution would
require a proper investigation.

For more info see:
- Issue/deprecate avatar type #8468 (Introduced In):
#8468
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants