diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-05-14 17:00:50 -0700 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2015-05-14 17:00:50 -0700 |
commit | 3dc19883c571a829c36aa603c04a55c91b00dd57 (patch) | |
tree | 49fe422f579f044b9a2db5f84dff2afeb25465d6 /tools | |
parent | f2d408b51debadca830eefbf8131185ac55ce699 (diff) | |
download | frameworks_base-3dc19883c571a829c36aa603c04a55c91b00dd57.zip frameworks_base-3dc19883c571a829c36aa603c04a55c91b00dd57.tar.gz frameworks_base-3dc19883c571a829c36aa603c04a55c91b00dd57.tar.bz2 |
Fix build: udpate parser factory method
Change-Id: I78ad55bc924427b44451ec32fbd1032d6cd77544
Diffstat (limited to 'tools')
-rw-r--r-- | tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java b/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java index b1a1f4d..ab682fd 100644 --- a/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java +++ b/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java @@ -23,6 +23,7 @@ import com.android.ide.common.rendering.api.ActionBarCallback; import com.android.ide.common.rendering.api.AdapterBinding; import com.android.ide.common.rendering.api.ILayoutPullParser; import com.android.ide.common.rendering.api.LayoutlibCallback; +import com.android.ide.common.rendering.api.ParserFactory; import com.android.ide.common.rendering.api.ResourceReference; import com.android.ide.common.rendering.api.ResourceValue; import com.android.ide.common.resources.IntArrayWrapper; @@ -32,6 +33,7 @@ import com.android.utils.ILogger; import org.kxml2.io.KXmlParser; import org.xmlpull.v1.XmlPullParser; +import org.xmlpull.v1.XmlPullParserException; import java.io.File; import java.lang.reflect.Constructor; @@ -163,7 +165,14 @@ public class LayoutLibTestCallback extends LayoutlibCallback { @NonNull @Override - public XmlPullParser createParser(@Nullable String name) { - return new KXmlParser(); + public ParserFactory getParserFactory() { + return new ParserFactory() { + @NonNull + @Override + public XmlPullParser createParser(@Nullable String debugName) + throws XmlPullParserException { + return new KXmlParser(); + } + }; } } |