summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2015-06-12 14:54:49 -0700
committerAdam Powell <adamp@google.com>2015-06-12 14:54:49 -0700
commitbbd3eeb9e53707bcbf0cc540acd7bb566252a969 (patch)
tree31c7bb1cc1d70a73ddfb6f23c998f9e0dd5829f7 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent54b65ff3004a1585867e8c3c4d267b381123e179 (diff)
Only read foreground attr for FrameLayouts for targetSdkVersion < M
Now that the android:foreground attribute is supported for all views it turns out some existing apps were previously setting foreground or applying styles with a foreground to unsupporting views even though the values being set were not drawables. While this was silently ignored before, now it results in app crashes. The most expedient fix is to only support foreground on non-FrameLayout views if the app sets targetSdkVersion to M or newer. Bug 21646309 Change-Id: I8937f44988866e86e640555f4bbc5dd5b2e1cce1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions