Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 829159f1 authored by Deepanshu Gupta's avatar Deepanshu Gupta Committed by Android Git Automerger
Browse files

am 996458b7: Fix ParserFactory not initialized error.

* commit '996458b7':
  Fix ParserFactory not initialized error.
parents 159f6ccd 996458b7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -99,9 +99,6 @@ public abstract class RenderAction<T extends RenderParams> extends FrameworkReso
            return result;
        }

        // setup the ParserFactory
        ParserFactory.setParserFactory(mParams.getLayoutlibCallback().getParserFactory());

        HardwareConfig hardwareConfig = mParams.getHardwareConfig();

        // setup the display Metrics.
@@ -230,6 +227,9 @@ public abstract class RenderAction<T extends RenderParams> extends FrameworkReso
     * The counterpart is {@link #tearDown()}.
     */
    private void setUp() {
        // setup the ParserFactory
        ParserFactory.setParserFactory(mParams.getLayoutlibCallback().getParserFactory());

        // make sure the Resources object references the context (and other objects) for this
        // scene
        mContext.initResources();