OSDN Git Service

Obtain cached drawables using the correct Resources object
authorAlan Viverette <alanv@google.com>
Fri, 13 Nov 2015 22:04:43 +0000 (17:04 -0500)
committerAlan Viverette <alanv@google.com>
Mon, 16 Nov 2015 15:12:44 +0000 (10:12 -0500)
commit477f3d092db302d24dcaa77bbcdd1026c9a468a4
treed49c57afb9acabb5735a056128d4cb72079cd395
parent746955c0d1ca496b34b2ad3f9c69d045db53e175
Obtain cached drawables using the correct Resources object

Previously we were discarding the Resources when forwarding from the
two-arg factory method to the one-arg method. This CL also updates the
documentation for ConstantState to be slightly more comprehensive.

Bug: 25688078
Change-Id: I4fbbf43f95fe792fa6f0bf9db8fd9a7cbfa51d1d
graphics/java/android/graphics/drawable/Drawable.java