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

Commit 6130a3b0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add debug wait to RunMethodInstrumentation" into ub-contactsdialer-h-dev

parents 613dc67c aa5bdeb8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ import android.app.Activity;
import android.app.Instrumentation;
import android.content.Context;
import android.os.Bundle;
import android.os.Debug;
import android.support.test.InstrumentationRegistry;
import android.util.Log;

@@ -62,6 +63,9 @@ public class RunMethodInstrumentation extends Instrumentation {
        Log.d(TAG, "Running " + className + "." + methodName);
        Log.d(TAG, "args=" + args);

        if (arguments.containsKey("debug") && Boolean.parseBoolean(arguments.getString("debug"))) {
            Debug.waitForDebugger();
        }
        start();
    }