New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 785431 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Not on Chrome anymore
Closed: Dec 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Task

Blocking:
issue 780175



Sign in to add a comment

Review AppCompatResources usage

Project Member Reported by dgn@chromium.org, Nov 15 2017

Issue description

A few components pull dependencies on the v7_appcompat support library only to use AppCompatResources#getDrawable. //base has as similar utility with ApiCompatibilityUtils#getDrawable, and does not pull in a dependency on a big external library.

If possible (no vector drawables involved, theme attributes unnecessary), we should use the utility from //base instead

Context:
- g/support-lib-discuss/Dux2VDpwoCI
-  issue 780175 

Usage that got flagged in the above context:
- //ui/android/../DropdownAdapter.java
- //components/autofill/../AutofillKeyboardAccessory.java
 

Comment 1 by dgn@chromium.org, Nov 16 2017

AutofillKeyboardAccessory currently loads vector drawables, so the AppCompat method is necessary for now.
Longer term, I'd like to actually delete our ApiCompatibilityUtils version and rely solely on AppCompatResources.

Our mismatched usage of AppCompat I think is very error prone.  I understand the need for a short term fix, but I think we should push hard (as you have started) for the appcompat team to allow this dependency to not be so huge.

Comment 3 by dgn@chromium.org, Nov 17 2017

Labels: -Pri-1 -Type-Bug Pri-2 Type-Task
Logging status: The pending CL was crrev.com/c/774864, but we need another API that would allow to load vectors to be able to remove the big dependency.

Comment 4 by dgn@chromium.org, Dec 18 2017

Status: WontFix (was: Assigned)
We currently can't get rid of AppCompatResources, so if we want to do something it will be still waiting on v7_appcompat to be split in smaller chunks. Not much to be done on our end. Closing.

Sign in to add a comment