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

Commit fde4a9e1 authored by Guang Zhu's avatar Guang Zhu Committed by The Android Open Source Project
Browse files

AI 146551: am: CL 146246 am: CL 146225 Work around initialization issue with...

AI 146551: am: CL 146246 am: CL 146225 Work around initialization issue with InstrumentationTest Runner. super.onCreate needs to be called as last statement in subclass' onCreate to avoid starting test case too early.
  Original author: guangzhu
  Merged from: //branches/cupcake/...
  Original author: android-build

Automated import of CL 146551
parent d73a32e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,6 @@ public class LayoutTestsAutoRunner extends InstrumentationTestRunner {

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        this.mTestPath = (String) icicle.get("path");
        String timeout_str = (String) icicle.get("timeout");
        if (timeout_str != null) {
@@ -64,6 +63,7 @@ public class LayoutTestsAutoRunner extends InstrumentationTestRunner {
        
        String r = (String)icicle.get("rebaseline");
        this.mRebaseline = (r != null && r.toLowerCase().equals("true"));
        super.onCreate(icicle);
    }
    
    public String mTestPath = null;