aboutsummaryrefslogtreecommitdiff
path: root/src/io/appium/droiddriver/util/InstrumentationUtils.java
diff options
context:
space:
mode:
authorKevin Jin <kjin@google.com>2015-03-13 10:27:53 -0700
committerKevin Jin <kjin@google.com>2015-03-13 10:27:53 -0700
commit4c349e0101d6b7a1057722aeb21d7955b0eb0aeb (patch)
treedb0eab4b98deb2c1f9e8b850ae69ca831dc18ddd /src/io/appium/droiddriver/util/InstrumentationUtils.java
parent05fe364c3bc2406e8703f69645a1ef8664b2b4ee (diff)
downloaddroiddriver-4c349e0101d6b7a1057722aeb21d7955b0eb0aeb.tar.gz
Add CloseKeyboardAction for InstrumentationDriver
Change-Id: I10c0d9cd8c88ccf88f1798a9b0daf7cc8ed796ad
Diffstat (limited to 'src/io/appium/droiddriver/util/InstrumentationUtils.java')
-rw-r--r--src/io/appium/droiddriver/util/InstrumentationUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/io/appium/droiddriver/util/InstrumentationUtils.java b/src/io/appium/droiddriver/util/InstrumentationUtils.java
index 95eb48c..c4f280d 100644
--- a/src/io/appium/droiddriver/util/InstrumentationUtils.java
+++ b/src/io/appium/droiddriver/util/InstrumentationUtils.java
@@ -17,6 +17,7 @@
package io.appium.droiddriver.util;
import android.app.Instrumentation;
+import android.content.Context;
import android.os.Bundle;
import android.os.Looper;
import android.util.Log;
@@ -73,6 +74,10 @@ public class InstrumentationUtils {
return instrumentation;
}
+ public static Context getTargetContext() {
+ return getInstrumentation().getTargetContext();
+ }
+
/**
* Gets the <a href= "http://developer.android.com/tools/testing/testing_otheride.html#AMOptionsSyntax"
* >am instrument options</a>.