• Home
  • History
  • Annotate
  • only in /frameworks/support/v4/kitkat/android/support/v4/graphics/drawable/
History log of /frameworks/support/v4/kitkat/android/support/v4/graphics/drawable/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
be678137d44778590a6220ae0ef13649e83363a9 21-Apr-2016 Chris Banes <chrisbanes@google.com> Tidy up DrawableCompat + VDC/AVDC calls

Currently DrawableCompat will wrap any drawable on
API < 22. As VDC supports tinting natively, we should
use that instead of wrapping.

This CL fixes this by extracting the calls to an marker
interface and making VDC + AVDC implement it.

Also tidied up the doc on DrawableCompat.wrap().

BUG: 28296684
Change-Id: I6e23db54aa10758b3c0a08e8d110210799453595
rawableCompatKitKat.java
4da36b0dfa8436b197314094337fa3102fcca1bc 25-Feb-2016 Chris Banes <chrisbanes@google.com> Fix issue with DrawableCompat.wrap() + mutation

The following is workaround for issues for certain
DrawableContainers on some API levels. They expect
getConstantState() to always return non-null, which
will only happen after our wrapper has been mutated.

Since most Drawables provided to wrap() will be from
Resources, they will nearly always have been mutated.
Therefore the wrapper should act as it has been too,
and return a constant state.

BUG: 27353857
Change-Id: Ib244f8f26f2e09979885d1fe2b84f0ec55cf2f02
rawableWrapperKitKat.java
ebbed34a78fa6519de6c2848e68b97f9d3b98e08 12-Feb-2016 Tenghui Zhu <ztenghui@google.com> Revert "Revert "Fix VFY warning for VDC and AVDC about calling the new API on old platform.""

This reverts commit 526ef1f65d55cc71f937773da63051f5fa7627ca.

Change-Id: Id558c0d0ffa79f4c78d34664014a5249eb974dc7
rawableCompatKitKat.java
526ef1f65d55cc71f937773da63051f5fa7627ca 12-Feb-2016 Tenghui Zhu <ztenghui@google.com> Revert "Fix VFY warning for VDC and AVDC about calling the new API on old platform."

This reverts commit 78fe6d45794f3e5f2b879ea4f931081f5ebfa334.

Change-Id: Id8df52b6e37799885f794fd2d963a6865c914274
rawableCompatKitKat.java
78fe6d45794f3e5f2b879ea4f931081f5ebfa334 10-Feb-2016 Teng-Hui Zhu <ztenghui@google.com> Fix VFY warning for VDC and AVDC about calling the new API on old platform.

Also remove some drawable API added on 23, which has no implementation on
VectorDrawable anyway.

b/26340645

Change-Id: I436a522d137fd0890f9b5fae4dcc30b6899a6aa5
rawableCompatKitKat.java
9925d4a53e0dbaacf07901fb48907fe1aff9bbbd 22-Jan-2016 Chris Banes <chrisbanes@google.com> Implement ConstantState in DrawableCompat.wrap()s wrappers

Mostly copied from M's DrawableWrapper class

BUG: 26698785
Change-Id: I2580e10883c4b2ec8d274ad66a3cd1c6ab1dfc95
rawableWrapperKitKat.java
7e82b99953680915596eaf0eb35927388e574ca8 27-Jan-2015 Chris Banes <chrisbanes@google.com> Add tintable Drawables to support-v4

Works by using AppCompat's tinting Drawbale wrapper
in support v4. I've also moved over AppCompat and
design lib to use DrawableCompat.

I've also added a workaround due to GradientDrawable
not supporting tinting of Lollipop.

Change-Id: Ifa178eae99207051bf72ba6b9f3148cdcbe1579f
rawableCompatKitKat.java
rawableWrapperKitKat.java
5df122f8bb619edcdbef94cd455efef0e6e44377 23-Sep-2013 Alan Viverette <alanv@google.com> Add auto-mirroring support to ActionBarDrawerToggle

Also adds the necessary KitKat packages, classes, and build targets
for the support-v4 library.

BUG: 10209321
Change-Id: Iec8906182be2694e2ef1959bcf39d9fe61b7a151
rawableCompatKitKat.java