History log of /frameworks/support/v7/appcompat/src/android/support/v7/widget/TintResources.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
60cc94cdf2f9dfd10f2fe0b3fa0fa438d51df271 04-Apr-2016 Chris Banes <chrisbanes@google.com> Back out TintResources changes

They were causing memory and configuration issues
therefore we need to back it out. This will revert
the functionality of being able to reference vector
drawables from within resources, but it's a necessary
cost.

We still need TintResources, but it's now back to being
a wrapper object which does not cause any issues.

BUG: 27877272
BUG: 27808232

Change-Id: Iad401718e51da15fddbd7ff88e41743dca40ad04
/frameworks/support/v7/appcompat/src/android/support/v7/widget/TintResources.java
71aa69624377ded7ce4a366664deec3ee5c7fb77 30-Mar-2016 Chris Banes <chrisbanes@google.com> Mitigate Resources leak on API 21+

We don't need to use TintResources on API 21+ to
enable vectors, so we can disable it. Doing so
removes a potential memory 'leak' (not a leak,
just using more memory than normal).

BUG: 27877272

Change-Id: I5515691e073cb03fce241b116d99c2ca8259791f
/frameworks/support/v7/appcompat/src/android/support/v7/widget/TintResources.java
5e4253358f0462c3ec79a4f0e67a774d04aa6380 04-Mar-2016 Alan Viverette <alanv@google.com> Keep weak reference to parent context in TintResources

Avoids a framework issue on API <= 23 whereby the resources are
incorrectly cached in the constant state of preloaded
DrawableContainers when newDrawable(Resources) is called.

Bug: 27477801
Change-Id: I28f8a76687aff5c7ca9275d1e6cc46a553193ab6
/frameworks/support/v7/appcompat/src/android/support/v7/widget/TintResources.java
717b628928c9f5cf22a783d1b9719d88eb0d993a 02-Mar-2016 Chris Banes <chrisbanes@google.com> Revert "Make TintResources inherit from ResourcesWrapper"

BUG: 27403642

This reverts commit 2e39b329595dd77df6ad8ba7272879cd2a99012a.

Change-Id: I4747a1b5b0253cf4232bd3a21f0b1a2913817733
/frameworks/support/v7/appcompat/src/android/support/v7/widget/TintResources.java
2e39b329595dd77df6ad8ba7272879cd2a99012a 29-Feb-2016 Diego Perez <diegoperez@google.com> Make TintResources inherit from ResourcesWrapper

BUG: 27403642

Change-Id: If24f4da29a2e622047763cfbe8af45fadeed8ba5
/frameworks/support/v7/appcompat/src/android/support/v7/widget/TintResources.java
b0f719227b3fa5d5bb7683bd835f7df504fcc733 18-Feb-2016 Chris Banes <chrisbanes@google.com> Fix some rough edges in AppCompat + VDC

- Make the Resources in AppCompatActivity, more
efficient and allows all calls to
getResources().getDrawable() to work for vectors.
- Make FloatingActionButton extend from AppCompat's
ImageButton. This allows it to support vector assets.

BUG: 27238402
Change-Id: Id39c6d7a8c431ed811bd552e14eba583311c5693
/frameworks/support/v7/appcompat/src/android/support/v7/widget/TintResources.java
e4beadba70aecabbd7f6677943ab7c0b94809b8a 10-Nov-2015 Chris Banes <chrisbanes@google.com> AppCompat + VectorDrawableCompat

AppCompat now depends on VectorDrawableCompat and makes use
of it for certain drawables (radio button, checkmark, back, etc).

We make use of the few extension points in the Drawable loading
system to make this possible. Most drawable loading happens
in Resources.loadDrawable() which can't be overriden. On API 19
and below though, most DrawableContainers load their child
drawables through Resources.getDrawable(), which we can hook into.

This means that a <vector> resource file can be loaded as long as it
is wrapped in a seperate DrawableContainer (Inset, StateList, etc).

For the times that wrapping the drawable isn't an option, we now also
have a app:srcCompat attribution on ImageView and ImageButton.

AppCompat statically compiles in VDC into the Make build artifacts.
This is to aid migration. Gradle is unaffected.

Change-Id: If2ab63e561354fe290e5df47e7560533725175fc
/frameworks/support/v7/appcompat/src/android/support/v7/widget/TintResources.java