summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorNader Jawad <njawad@google.com>2018-04-05 16:34:47 -0700
committerNader Jawad <njawad@google.com>2018-04-06 17:09:40 +0000
commit236a183e8bc0b29af9dee52dae6f061b134b6a3f (patch)
tree01261e51cb631b2d3b70e92d42e6a9bc1098b995 /tools/aapt2/java/JavaClassGenerator.cpp
parent893c5e0c70179fc8c000508afe9f89a6af8e220d (diff)
Removed call to setWillNotCacheDrawing and deprecated it as well as
willNotCacheDrawing as intermediate caching layers are obsolete since hardware accelerated rendering was introduced in API 11 ImageView's current implementation of setScaleType would manually disable it's cache if the ScaleType provided was CENTER. This was end up not drawing the ImageView if View.LAYER_TYPE_SOFTWARE was configured on the ImageView as the cache no longer existed. Removed the logic to conditionally disable the drawing cache and marked setWillNotCacheDrawing/willNotCacheDrawing as hardware accelerated rendering makes these facilities obsolete Fixes: 77653694 Fixes: 72139649 Test: Created a test application with an ImageView and manually set a ScaleType of CENTER and forced the ImageView to render in a software layer to confirm that it would render properly with a drawable of the test application's launcher icon Change-Id: Ie73b1e0708a265e3cc2cc74ed13539f4219dbd7d (cherry picked from commit 2ac86880d6888b0508cdb7d6b2f22a1329a66560)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions