Fix copy items' icon not shown in Chrome context menu.
Recently all copy related items' change from png to vector drawable, this makes TintedDrawable.constructTintedDrawable fail to render the icon because VectorDrawable does not extend TintedDrawable. Also since ApiCompatibilityUtils.getDrawable cannot render vector drawable on pre-L devices, change to use AppCompatResources.getDrawable to render icon for context menu. Bug: 791780 Change-Id: I35dead93f8ab5d89da49ef32180bebb644effc78 Reviewed-on: https://chromium-review.googlesource.com/807344 Commit-Queue: Lei Tian <ltian@chromium.org> Reviewed-by:Tommy Nyquist <nyquist@chromium.org> Reviewed-by:
Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#521778}
Showing
Please register or sign in to comment