OSDN Git Service

Fix getAttributeSetSourceResId to AttributeSet created from null.
authorAurimas Liutikas <aurimas@google.com>
Fri, 8 Mar 2019 23:29:09 +0000 (15:29 -0800)
committerAurimas Liutikas <aurimas@google.com>
Fri, 8 Mar 2019 23:29:09 +0000 (15:29 -0800)
commit02d7f45afa7f7fcf18095a78b4c194907fab6033
tree1ed3a813b3b7c393d03161b106fdcb70ef34ea88
parenta091cc2d8b3ac4caae4f5400174927753d59477e
Fix getAttributeSetSourceResId to AttributeSet created from null.

Xml.asAttributeSet with a null returns non XmlBlock.Parser type
object.
This fixes the existing test that broke due to my changes to
LayoutInflater.

Test: atest CtsViewTestCases:LayoutInflaterTest
Change-Id: Ib10e07ef3814c5570a6d2bd334481f2e26bb3d3e
core/java/android/content/res/ResourcesImpl.java